Get URL query string parameters

前端 未结 11 1432
长情又很酷
长情又很酷 2020-11-22 17:41

What is the \"less code needed\" way to get parameters from a URL query string which is formatted like the following?

www.mysite.com/category/subcateg

11条回答
  •  温柔的废话
    2020-11-22 17:49

    $_SERVER['QUERY_STRING'] contains the data that you are looking for.


    DOCUMENTATION

    • php.net: $_SERVER - Manual

提交回复
热议问题