mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
14 lines
165 B
Plaintext
14 lines
165 B
Plaintext
|
--TEST--
|
||
|
Testing array shortcut and bracket operator
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$a = [1, 2, 3, 4, 5];
|
||
|
print_r([$a[1], $a[3]]);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
Array
|
||
|
(
|
||
|
[0] => 2
|
||
|
[1] => 4
|
||
|
)
|