note 30246 added to function.implode

From: Date: Wed, 12 Mar 2003 06:58:49 +0000
Subject: note 30246 added to function.implode
Groups: php.notes 
Request: Send a blank email to php-notes+get-45133@lists.php.net to get a copy of this message
Implode has managed to help me with a quirk in the latest Apache/SSI/PHP combination. I find that a line like: <!--#include virtual="test.php?info" --> doesn't include the 'info' in the query string (though it does if add some other stuff). This function will reconstruct the query string: function queryString() { $qs=array(); foreach($_REQUEST as $key=>$item) $qs[]=$key.(($item)?"=".$item:""); return implode("&",$qs); } -- http://www.php.net/manual/en/function.implode.php http://master.php.net/manage/user-notes.php?action=edit+30246 http://master.php.net/manage/user-notes.php?action=delete+30246 http://master.php.net/manage/user-notes.php?action=reject+30246

« previous php.notes (#45133) next »