| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
FileSystem |
JFile |
stripExt |
stripExt() |
Never | Work in Progress |
Strips the last extension off a file name. This function will remove the last ‘.’ and all following characters from the string.
string stripExt ( $file )
| $file | string | is a string containing the file name. |
Example: This example reads the robot.txt file.
Example
echo JFile::stripExt( 'application.html.php' );
which might produce something like:
Result
application.html