- function FileExtension($fstr){
- $retval = '';
- $pt = strrpos($fstr, ".");
- if ($pt) $retval = substr($fstr, $pt+1, strlen($fstr) - $pt);
- return ($retval);
- }
- //该片段来自于http://www.codesnippet.cn/detail/140520133319.html
来源: http://www.codesnippet.cn/detail/140520133319.html