TwistPHP Documentation

extension

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

extensionGet the file extension of any file, provide the file or its full path.

Parameters

Name Type Description
$strFilePathstringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strFilePath 'foo';

//Call the function extension with the example vars
Twist::File() -> extension($strFilePath);