简单教程
提交运行
代码编辑器:
<?php $bin = pack("c2n2",0x1234,0x5678,65,66); print_r(unpack("c2chars/n2int",$bin));
运行结果: