且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP如何获取当前rewrited网址不包括查询字符串?

更新时间:2023-02-23 08:36:09

在你PHP可以用code这样来获得当前URI的没有查询字符串

In you PHP you can use code like this to get current URI without query string:

$thisuri = preg_replace('/\?.*$/', '', $_SERVER["REQUEST_URI"]);