======array====== WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0 Create an array, with optional values ====Description==== array array ( [ mixed $value [, ...] ] ) ====Parameters==== $value(s): Optional comma separated list of values of any type (string, int, float, array) ====Return Values==== Array: empty or with values as specified ====Examples==== ===Creating Arrays=== ===Key/Value Pairs===
The above example will output: Key at Index 0 is name and value is John Key at Index 1 is age and value is 33 ====Note==== An [[indexed array]] is a more efficient way to store variables in memory if the size and data type is known beforehand. The [[array()]] function creates a hashed array, which consumes much more memory per element. ====See Also==== [[indexed_array()]] - Create an array of a specific type and size [[sizeof()]] - Return the number of elements in an array [[print_r()]] - Dump the contents of an array to the current output [[array_key()]] - Return the key for an array index [[array_keys()]] - Return keys for an array that has key/value pairs [[uphp:variables|uPHP Variable Types and Limits]]