Obtain file extension method

xiaoxiao2021-03-06  53

Function Extend ($ file_name) {$ RETVAL = ""; $ Pt = Strpos ($ file_name, "."); if ($ Pt) $ RETVAL = SUBSTR ($ file_name, $ Pt 1, Strlen ($ file_name) - $ PT); Return ($ RETVAL);} // Method 2 (PHP4.03 and later) $ extend = PathInfo ($ file_name); $ extend = Strtolower ($ extend "]); ECHO $ ​​extension ;?>

转载请注明原文地址:https://www.9cbs.com/read-116695.html

New Post(0)