looking for a function to parse URL parameters
Posted: Sun Sep 12, 2004 3:47 am
Hello
I was wondering if anyone knows if there is a PHP function that takes as input a URL string, parses it and returns an array of all the parameters in the string.
Here is an example:
"text.html?a=1&b=2&c=3"
output would be:
array('a' => 1, 'b' => 2, 'c' => 3)
regards
I was wondering if anyone knows if there is a PHP function that takes as input a URL string, parses it and returns an array of all the parameters in the string.
Here is an example:
"text.html?a=1&b=2&c=3"
output would be:
array('a' => 1, 'b' => 2, 'c' => 3)
regards