1--TEST-- 2unpack() with offset 3--FILE-- 4<?php 5$data = "pad" . pack("ll", 0x01020304, 0x05060708); 6 7$a = unpack("l2", $data, 3); 8printf("0x%08x 0x%08x\n", $a[1], $a[2]); 9 10printf("0x%08x 0x%08x\n", 11 unpack("l", $data, 3)[1], 12 unpack("@4/l", $data, 3)[1]); 13?> 14--EXPECT-- 150x01020304 0x05060708 160x01020304 0x05060708 17