array: Short array syntax

Short array syntax

$array = [
    "foo" => "bar",
    "bar" => "foo",
];

Replaces array() with [].

Related concepts

Short array syntax

array: Short array syntax — Structure map

Clickable & Draggable!

array: Short array syntax — Related pages: