parse_str() function parses string into various variables, setting the variables in the current scope. : Query String « Form « PHP






parse_str() function parses string into various variables, setting the variables in the current scope.

 
The syntax is: void parse_str (string string)

<?
$url = "fname=wj&lname=gore&zip=43210";
parse_str($url);
?>
  
  








Related examples in the same category

1.Passing Complex Values in a Querystring
2.Passing Numeric Values in a Querystring
3.Passing String Values in a Querystring
4.parse_str.php