Mega Code Archive

 
Categories / Php / Functions
 

Void parse_str ( string str [, array &arr] ) take a query string and convert it to variables

<?     if (isset($foo)) {             print "Foo is $foo<br />";     } else {             print "Foo is unset<br />";     }     parse_str("foo=bar&bar=baz");     if (isset($foo)) {             print "Foo is $foo<br />";     } else {             print "Foo is unset<br />";     } ?>