Answers for "php url parse query string"

PHP
0

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
Posted by: Guest on February-04-2022

Browse Popular Code Answers by Language