Created
June 28, 2013 14:04
-
-
Save ijy/5884906 to your computer and use it in GitHub Desktop.
Convert query string params into an arrary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$querystring = 'a=foo&b=bar'; | |
parse_str($querystring, $params); | |
// Test it | |
echo "<pre>"; | |
print_r($params); | |
echo "</pre>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment