我有以下的PHP变量
$currentUrl
这个PHP变量会返回当前页面的URL。例如:它会返回:
http://example.com/test-category/page.html?_ore=norn&___frore=norian
我可以使用哪些php代码来删除链接中“.html”后面的所有内容,并返回一个干净的链接,例如:
http://example.com/test-category/page.html
这将在一个新变量 $clean_currentUrl 中返回。