【发布时间】:2016-09-23 20:01:12
【问题描述】:
如何将 4 字节数组转换为整数数组。
<?php
$i = "A\0\0\0\A\0\0\0\A\0\0\0"; //I think this input 12Byte Array
$j = unpack("i*",$i); //I want this output 65,65,65 (4Byte * 3)
?>
不是工作代码..
我怎样才能得到输出
$j[0]=65, $j[1]=65, $j[2]=65 ?
【问题讨论】:
-
或者..如果$我需要改变,我该怎么办?
标签: php type-conversion