Support Joomla!

references:joomla.framework:filesystem:jfile-getext

Table of Contents

getExt

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage FileSystem Class JFile Method getExt Reference getExt() Never Work in Progress

Gets the extension of a file name. The function returns all the characters after the last ‘. ' in the string.

Syntax

string getExt ( $file )

$file string is a string containing the file name.

Examples

Example: This example gets the extension of a file.

Example

echo JFile::getExt( 'images/stories/clock.jpg' );

which will produce:

Result

jpg

Discussion

Full name:
E-Mail:
 
references/joomla.framework/filesystem/jfile-getext.txt (764 views) · Last modified: 2007/08/15 15:06