note 56518 deleted from function.hexdec by mazzanet
| From: | mazzanet@php.net | Date: | Tue, 06 Sep 2005 07:26:23 +0000 |
| Subject: | note 56518 deleted from function.hexdec by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-94784@lists.php.net to get a copy of this message | ||
Note Submitter: nihaopaul at nihaopaul dot com
----
function querystring_output($array) {
foreach($array as $key => $value) {
$qs = split("=", $value);
if ($qs[0] == 'msg') {
$qsary = split("%", $qs[1]);
foreach($qsary as $key => $value) {
if ($qsary[$key]) {
$output .= $key . '=> ' . hexdec($value) .
'<br>'."\n";
}
}
}
}
return $output;
}
$_content .= querystring_output(split("&", $_SERVER['QUERY_STRING']));
all its missing is to turn that hex into html unicode so it can be displayed on a page without
changing the character encoding.