array

array

(PHP 4, PHP 5, PHP 7)

arrayCreate an array

Description

array array ([ mixed $... ] )

Creates an array. Read the section on the array type for more information on what an array is.

Parameters

...

Syntax "index => values", separated by commas, define index and values. index may be of type string or integer. When index is omitted, an integer index is automatically generated, starti