1--TEST--
2test unpack() to array with named keys
3--FILE--
4<?php
5$str = pack('VVV', 0x00010203, 0x04050607, 0x08090a0b);
6print_r(unpack('Vaa/Vbb/Vcc', $str));
7print_r(unpack('V2aa/Vcc', $str));
8print_r(unpack('V3aa', $str));
9print_r(unpack('V*aa', $str));
10print_r(unpack('V*', $str));
11?>
12--EXPECT--
13Array
14(
15    [aa] => 66051
16    [bb] => 67438087
17    [cc] => 134810123
18)
19Array
20(
21    [aa1] => 66051
22    [aa2] => 67438087
23    [cc] => 134810123
24)
25Array
26(
27    [aa1] => 66051
28    [aa2] => 67438087
29    [aa3] => 134810123
30)
31Array
32(
33    [aa1] => 66051
34    [aa2] => 67438087
35    [aa3] => 134810123
36)
37Array
38(
39    [1] => 66051
40    [2] => 67438087
41    [3] => 134810123
42)
43