What I want to do is pull everything after the ? query like a $_GET. I know I can use $_GET['test'] to pull ?test=true but what if I just want to pull ?true or ?false I want to hold everything after the ? in a variable. I could probably use $_SERVER get pull the url then chop it up into what I need, but that just seemed like the long / incorrect way of doing it. Is there an easier way to do what I’m trying to do?
What I want to do is pull everything after the ? query like a
Share
You can get everything after the
?(called the query string) from the variable: