字符串怎样转成16进制的数例如:将字符串ffd8ffe000,转成16进制的ff d8 ff e0 00 [解决办法]$h = pack('H*', 'ffd8ffe000');php 5.4 还可以$h = hex2bin('ffd8ffe000');