adv Posted June 20, 2007 Share Posted June 20, 2007 function query_str ($params) { $str = ''; foreach ($params as $key => $value) { $str .= (strlen($str) < 1) ? '' : '&'; $str .= $key . '=' . rawurlencode($value); } return ($str); } $b = query_str ($_POST); parse_str($b); i saw this in alot of scripts .. what does it mean?? what is supose to do? and i forgot what does this do parse_str($_SERVER['QUERY_STRING']); what the QUERY_STRING means Quote Link to comment https://forums.phpfreaks.com/topic/56321-solved-function-help/ Share on other sites More sharing options...
adv Posted June 20, 2007 Author Share Posted June 20, 2007 can someone please say something about my post :| Quote Link to comment https://forums.phpfreaks.com/topic/56321-solved-function-help/#findComment-278554 Share on other sites More sharing options...
cluce Posted June 20, 2007 Share Posted June 20, 2007 I am not sure but here is link for info about it . http://us2.php.net/manual/en/function.parse-str.php Quote Link to comment https://forums.phpfreaks.com/topic/56321-solved-function-help/#findComment-278559 Share on other sites More sharing options...
taith Posted June 20, 2007 Share Posted June 20, 2007 query string is the $_GET information so "www.google.ca/?op=alsjdf&div=asflj" the query string would contain "?op=alsjdf&div=asflj" that function takes all the $_POST information, and turns it into a string that can be transfered via $_GET... :-) Quote Link to comment https://forums.phpfreaks.com/topic/56321-solved-function-help/#findComment-278562 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.