mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
21 lines
314 B
PHP
21 lines
314 B
PHP
--TEST--
|
|
Testing nested array shortcut
|
|
--FILE--
|
|
<?php
|
|
print_r([1, 2, 3, ["foo" => "orange", "bar" => "apple", "baz" => "lemon"]]);
|
|
?>
|
|
--EXPECT--
|
|
Array
|
|
(
|
|
[0] => 1
|
|
[1] => 2
|
|
[2] => 3
|
|
[3] => Array
|
|
(
|
|
[foo] => orange
|
|
[bar] => apple
|
|
[baz] => lemon
|
|
)
|
|
|
|
)
|