Skip to content

Instantly share code, notes, and snippets.

@ijy
Created June 28, 2013 14:04
Show Gist options
  • Save ijy/5884906 to your computer and use it in GitHub Desktop.
Save ijy/5884906 to your computer and use it in GitHub Desktop.
Convert query string params into an arrary
$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