I am PHP programmer, I spent time to search on forum and manual but no luck to convert this code below into form of b4a
Anyone can help me?
$mb_hex = '';
for($i = 0 ; $i<mb_strlen($data,'UTF-8') ; $i++)
{
$c = mb_substr($data,$i,1,'UTF-8');
$o = unpack('N',mb_convert_encoding($c,'UCS-4BE','UTF-8'));
$mb_hex .= sprintf('%04X',$o[1]);
}
Thank alot
Anyone can help me?
$mb_hex = '';
for($i = 0 ; $i<mb_strlen($data,'UTF-8') ; $i++)
{
$c = mb_substr($data,$i,1,'UTF-8');
$o = unpack('N',mb_convert_encoding($c,'UCS-4BE','UTF-8'));
$mb_hex .= sprintf('%04X',$o[1]);
}
Thank alot