Jump to content

[SOLVED] function help


adv

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/56321-solved-function-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.