Codice PHP:
$path_parts pathinfo($value);

echo 
"questo file è un ".$path_parts['extension'];