- chr: documentation ( source)
- hexdec: documentation ( source)
- str_split: documentation ( source)
<?php
function decodebinhex($hexdata) {
$res = '';
$ar = str_split($hexdata,2);
foreach ($ar as $ch) {
$res .= chr(hexdec($ch));
}
return $res;
}
?>