把url后面的.html去掉

$url = "http://haichuang1997.bmlink.com/supply/dc_355472.html";
echo rtrim($url, '.html');

posted @ 2015-03-11 09:06  敲着键盘看风景  阅读(339)  评论(0编辑  收藏  举报