$ext = strtolower(pathinfo($url,PATHINFO_EXTENSION));
static public function get_extension($file)
{
if(!$file)
return "";
$info = pathinfo($file);
return $info['extension'];
}
转载于:https://my.oschina.net/sharesuiyue/blog/479984
$ext = strtolower(pathinfo($url,PATHINFO_EXTENSION));
static public function get_extension($file)
{
if(!$file)
return "";
$info = pathinfo($file);
return $info['extension'];
}
转载于:https://my.oschina.net/sharesuiyue/blog/479984