php-src/tests/lang/array_shortcut_001.phpt

14 lines
142 B
PHP

--TEST--
Square bracket array shortcut test
--FILE--
<?php
print_r([1, 2, 3]);
?>
--EXPECT--
Array
(
[0] => 1
[1] => 2
[2] => 3
)