function to get file extension

by kalai 2010-03-02 20:33:32


function getFileExtension($filename){
return substr($filename, strpos($filename, '.')+1);
}
$ext=getFileExtension($file);

Tagged in:

907
like
0
dislike
0
mail
flag

You must LOGIN to add comments