We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00c2c3a commit cba560eCopy full SHA for cba560e
ext/standard/tests/array/compact_order.phpt
@@ -0,0 +1,25 @@
1
+--TEST--
2
+compact() and hashmap order
3
+--FILE--
4
+<?php
5
+
6
+$foo = null;
7
+$bar = null;
8
9
+var_dump(compact('foo', 'bar'));
10
+var_dump(compact('bar', 'foo'));
11
12
+?>
13
+--EXPECT--
14
+array(2) {
15
+ ["foo"]=>
16
+ NULL
17
+ ["bar"]=>
18
19
+}
20
21
22
23
24
25
0 commit comments