# $array

Explicitly creates an array

Usage

    $array(<item>,<item>,<item>,....);

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

    <array> $array(<item:variant>,<item:variant>,<item:variant>,....);

Examples

        alias(test) {
            return $array(1,2,3);
        }
        %x = $test();
        foreach(%y,%x) {
            echo %y;
        }

See also
$hash

Index, Functions

KVIrc 4.2.0.6190 Documentation
Generated by root at Mon Sep 23 06:46:00 2013