note 30246 deleted from function.implode by sniper
| From: | sniper@php.net | Date: | Wed, 08 Oct 2003 03:38:48 +0000 |
| Subject: | note 30246 deleted from function.implode by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57985@lists.php.net to get a copy of this message | ||
Note Submitter: mark@manngo.net
----
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);
}