parse_str function
parse_str
———
This function will parse the string into variables
Syntax:
=======
void parse_str ( string str [, array arr])
The parse_str() function is designed to take a query string like that one and convert it to variables in the same way that PHP does when variables come in. The difference is that variables parsed using parse_str() are converted to global variables, as opposed to elements inside $_GET
example:
=====
<?php
parse_str(”value=23&alpha=K”);
echo $value.”<br />”;
echo $alpha;
?>
23
k
