【发布时间】:2013-06-23 00:05:06
【问题描述】:
我有以下 php 变量
$currentUrl
这个 php 变量返回给我当前的 url 页面。例如:它返回:
http://example.com/test-category/page.html?_ore=norn&___frore=norian
我可以使用什么 php 代码来获取这个 url 链接并删除 ".html" 之后的所有内容,并返回一个干净的 url 链接,例如:
http://example.com/test-category/page.html
这将在一个新变量 $clean_currentUrl
中返回【问题讨论】:
标签: php