File
class File
Methods
Check if the given MIME type or extension is an image.
Check if the given MIME type or extension is a video.
Get the file extension from a filename string.
Get the file extension from a MIME type.
Get the MIME type from a file extension.
Get all image MIME types.
Get all application MIME types.
Get all audio MIME types.
Get all message MIME types.
Get all text MIME types.
Get all video MIME types.
Get all x-world MIME types.
Get all supported MIME types.
Details
at line 12
static bool
isImage(string $data)
Check if the given MIME type or extension is an image.
at line 22
static bool
isVideo(string $data)
Check if the given MIME type or extension is a video.
at line 32
static string
getExtensionFromString(string $string)
Get the file extension from a filename string.
at line 42
static string|false
getExtensionFromMIME(string $mime)
Get the file extension from a MIME type.
at line 52
static string|false
getMIME(string $extension)
Get the MIME type from a file extension.
at line 61
static array
image_MIME()
Get all image MIME types.
at line 94
static array
application_MIME()
Get all application MIME types.
at line 220
static array
audio_MIME()
Get all audio MIME types.
at line 242
static array
message_MIME()
Get all message MIME types.
at line 255
static array
text_MIME()
Get all text MIME types.
at line 284
static array
video_MIME()
Get all video MIME types.
at line 310
static array
x_world_MIME()
Get all x-world MIME types.
at line 326
static array
all_MIME()
Get all supported MIME types.