|
|
$arrayExplicitly creates an array |
| Usage |
|
| Description |
| Returns an array with the specified items. The items are indexed starting from 0. This is just an explicit way of creating an array with a defined set of items, useful for increasing readability. |
| Syntax Specification |
|
| Examples |
| alias(test){ return $array(1,2,3); }; %x = $test(); foreach(%y,%x) { echo %y; } |
| See also |
| $hash |