$str="あい";
$str=mb_convert_encoding($str,"JIS","euc-jp");
$str=bin2hex($str);
$str=substr($str,6,8);
print($str);