Return to Snippet

Revision: 30223
at August 10, 2010 08:25 by lolindirfaelivrin


Initial Code
/**
*
* @Get File extension from file name
*
* @param string $filename the name of the file
*
* @return string
*
**/
function getFileExtension($filename){
  return substr($filename, strrpos($filename, '.'));
}

Initial URL

                                

Initial Description

                                

Initial Title
Get File Extension

Initial Tags
php, file, extension

Initial Language
PHP