| Previous | Home | Next |
parse_str()
The parse_str() function parses a query string into variables.
Syntax:parse_str(string,array)
In above syntax, "string" specifies the string to parse and "array" specifies the name of an array to store the variables. This parameter indicates that the variables will be stored in an array.
Example:
<?php
parse_str("name=Arun &age=43");
echo $name."<br>";
echo $age;
?>
Output:
Arun 43
| Previous | Home | Next |