Get file extension using php

by satheeshkumar 2012-07-06 16:19:14

The following code is used to get the file extension from filename using php,

$path_parts = pathinfo('/www/htdocs/inc/lib.inc.php');
echo $path_parts['extension'];
?>


861
like
0
dislike
0
mail
flag

You must LOGIN to add comments