File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
mimeType
— Get the mime type of a file by its file extension.
Name | Description |
---|---|
$dirFile | n/a |
[$blReturnDefaultOnly = true] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$dirFile = '/home/user/public_html/twist';
$blReturnDefaultOnly = true;
//Call the function mimeType with the example vars
Twist::File() -> mimeType($dirFile, $blReturnDefaultOnly);