Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
themes
/
storefront
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Tests
/
Arrays
:
DisallowLongArraySyntaxUnitTest.1.inc.fixed
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php $var = []; $var = [1,2,3]; $var = [1,2,3]; echo $var[1]; $foo = [$var[1],$var[2]]; $foo = [ 1, 2, 3 ]; $var = /*comment*/[1,2,3]; $var = array; function foo(array $array) {} $a = function (array $array) use ($foo): array {}; abstract function foo(): array; abstract function foo(): Foo\Bar; abstract function foo(): \Foo\Bar; array_map( static fn (array $value): array => array_filter($value), [] );