Go to: Synopsis. Return value. MEL examples.
string fileExtension(string $file)
None
Variable Name | Variable Type | Description |
---|---|---|
$file | string | A file that may contain a file extension. |
fileExtension("file.txt"); // Result: txt // fileExtension("c:/Images/image.bmp"); // Result: bmp // fileExtension("/usr/images/picture.jpg"); // Result: jpg // fileExtension("c:\Documents\Pictures\me.jpg"); // Result: jpg // fileExtension("frame.012.tif"); // Result: tif //