#Get File Extension #https://codepad.co/snippet/e83837 <?php /** * Get the (lowercased) extension from a filename. * @param string $filename The name of the file * @return string * @author Sunny Walker <www.miraclesalad.com> */ function getFileExt($filename) { return strtolower(substr(strrchr($filename, '.'), 1)); } //getFileExt() ?>