Get the GET variables from a URL String

后端 未结 5 1441
生来不讨喜
生来不讨喜 2020-12-05 11:30

Hey, say I have a url just being passed through my php is there any easy way to get some GET variables that are being passed through it? It\'s not the actual url of the page

5条回答
  •  借酒劲吻你
    2020-12-05 12:14

    It's actually a lot easier than writing any custom functions.

    $queryStr = $_SERVER['QUERY_STRING'];

提交回复
热议问题