note 70011 deleted from reserved.variables by bobby
| From: | bobby@php.net | Date: | Fri, 29 Sep 2006 21:57:31 +0000 |
| Subject: | note 70011 deleted from reserved.variables by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117854@lists.php.net to get a copy of this message | ||
Note Submitter: catalin_moiceanu a@t acomdesign d00t ro
Reason: bad code
----
Here is a function I did to fetch all submited informations of type $x :
<?php
function getSubmitedInfo($x)
{
for($i=0;$i<count($x);$i++)
{
while (list($key, $value) = each($x)) {
$vars .= "\$$key=$value<br/>\n";
}
}
return $vars;
}
?>
Example of usage :
<?php
echo $getSubmitedInfo($_POST); // or $_GET or any superglobal you'd like
?>