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