Convert HEX2TEXT

Converting hex into a text or normal string.
PHP CODE

function hex2text($hexstr) {
$hex = explode('%',$hexstr);
array_shift($hex);
$str = '';
foreach($hex as $hexcode) {
$str .= chr(base_convert($hexcode, 16, 10));
}
return $str;
}

No comments: