public static function fileExtension($name, $realFile = false) {
		if ($realFile) {
			$result = pathinfo($name, PATHINFO_EXTENSION);
			if (empty($result)) {
				return false;
			}
		}

		return substr(strrchr($name, '.'), 1);
	}
public static function fileExtension($name, $realFile = false) {
		if ($realFile) {
			$result = pathinfo($name, PATHINFO_EXTENSION);
			if (empty($result)) {
				return false;
			}
		}

		return substr(strrchr($name, '.'), 1);
	}
public static function fileExtension ( $ name , $ realFile = false ) { if ( $ realFile ) { $ result = pathinfo ( $ name , PATHINFO_EXTENSION ) ; if ( empty ( $ result ) ) { return false ; } } return substr ( strrchr ( $ name , '.' ) , 1 ) ; }
Return file extension from a given filename.

@param string $name File name
@param bool|bool $realFile
@link http://php.net/manual/en/function.pathinfo.php
@return false|string string or false
Return file extension from a given filename .