PHP获取链接中的后缀名

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

原文地址:https://www.cnblogs.com/geeky/p/4838061.html