1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/standard/tests/array/compact_order.phpt

26 lines
263 B
PHP

--TEST--
compact() and hashmap order
--FILE--
<?php
$foo = null;
$bar = null;
var_dump(compact('foo', 'bar'));
var_dump(compact('bar', 'foo'));
?>
--EXPECT--
array(2) {
["foo"]=>
NULL
["bar"]=>
NULL
}
array(2) {
["bar"]=>
NULL
["foo"]=>
NULL
}