PHP获取链接中的后缀名

$url = "index.html";
echo substr(strrchr($url,"."),1);

posted on 2015-09-25 14:15  geeky  阅读(217)  评论(0编辑  收藏  举报