Parse PHP Query String

in a url if there are mutliple key=pairs&key=pairs
how the hell do i get all of them?
it only gives me the last one!

You can get the whole thing with $_SERVER['QUERY_STRING'], but then you have to parse it yourself
Please tell me thats not the only way!

well apart from $GLOBALS['_SERVER']['QUERY_STRING']

parse_url() ?
er, that's not it
that suffers the same problem as $_GET
parse_str() rather
parse_str
yeah!!!

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Leave a Comment

You must be logged in to post a comment.


Blog Tags:

Similar posts: