21,886
社区成员
发帖
与我相关
我的任务
分享
byte[] a = System.Text.Encoding.UTF8.GetBytes("winslow");
textBox1.Text = System.BitConverter.ToString(a);
$str = '77-69-6E-73-6C-6F-77';
//1.
echo preg_replace("/(^|\-)[^\-]+/e","chr(hexdec('\\0'))",$str)."<br/>";
//2.
$c = explode('-',$str);
foreach($c as $s)
{
$cs .= chr(hexdec($s));
}
echo $cs;