File extension

Returns the file extension of a file

<?
function file_extension($filename)
{
return pathinfo($filename, PATHINFO_EXTENSION);
}
?>

Usage

string file_extension -> string


Comments

Add your comment