array array
([mixed
...])
Returns an array of the parameters. The parameters can be given an index with the => operator.
Note: Array() is a language construct used to represent literal arrays, and not a regular function.
The following example demonstrates how to create a two-dimensional array, how to specify keys for associative arrays, and how to skip-and-continue numeric indices in normal arrays.
Example 1. Array() example
|
See also: list().