class Mime (View source)

Handles mime type detection

Methods

static string
detect(string $test)

Tries to detect MIME type of content.

Details

static string detect(string $test)

Tries to detect MIME type of content.

Parameters

string $test

First few bytes of content to use for detection

Return Value

string