note 43433 deleted from function.http-build-query by aidan

From: Date: Mon, 22 Nov 2004 04:22:29 +0000
Subject: note 43433 deleted from function.http-build-query by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-80843@lists.php.net to get a copy of this message
Note Submitter: brooklynphil hotmail com ---- for php<5 (does not support nested arrays) <?php if (!function_exists('http_build_query')){function http_build_query($a) { $f = '';$ret = ''; foreach ($a as $i => $j) // might wanna slop urlencode() in here {$ret .= "$f$i=$j"; $f='&';} return $ret; }} $ploturl = 'do_plot_image.php?' . http_build_query($_GET); ?> --Phil

« previous php.notes (#80843) next »