Php Programming Code Examples Php > File Manipulation Code Examples Get File Extention Get File Extention <?php // // Usage: // $filename = "script.php"; // $extention = GetFileExtention($filename); // echo $extention; // function GetFileExtention($filename) { $ext = strch($filename,"."); return $ext; } ?>