PHP 扩展名获取

function get_extension($file)
{
    return pathinfo($file, PATHINFO_EXTENSION);
} 

评论

暂无评论