TwistPHP Documentation

mimeType

File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

mimeTypeGet the mime type of a file by its file extension.

Parameters

Name Type Description
$dirFilestringn/a
[$blReturnDefaultOnly = true]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?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);