Code:
function Mbin2string($binstr)
{
$out = "0x";
for($q=0; $q < strlen($binstr); $q++) {
$w = dechex(ord($binstr[$q]));
if(strlen($w)==1) $w = '0'.$w;
$out .= $w;
}
$out = strtoupper($out);
$out[1] = 'x';
return $out;
}
put your binary result as parameter to this function and you will see the hex string.