php实用技巧

获取url文件扩展名

$a = 'http://www.0755job8.com/fsdfsdf.php?id=13123';
$path = parse_url($a);
$base = pathinfo($path['path']);
$ext = $base['extension'];

你可能感兴趣的:(PHP,ext,url,扩展,Path,extension)