![]() |
|
|
#4 |
|
Архивный участник
Join Date: Apr 2006
Posts: 118
|
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;
}
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|