Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php parse query string

$str = "first=value&arr[]=foo+bar&arr[]=baz";

// Recommended
parse_str($str, $output);
echo $output['first'];  // value
echo $output['arr'][0]; // foo bar
echo $output['arr'][1]; // baz
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #parse #query #string
ADD COMMENT
Topic
Name
5+7 =