# $hash Explicitly creates a hash
Usage
    $hash([<key>,<value>,[<key>,<value>]],...)
Description
Returns a hash with the specified items. Each <value> is indexed by the preceeding <key>. This is just an explicit way of creating a hash with a defined set of items, useful for increasing readability.
Syntax Specification
    <hash> $hash([<key:string>,<value:variant>,[<key:string>,<value:variant>]],...)
Examples
        alias(test){ return $hash(1,X,2,Y,3,Z); };
        %x = $test();
        foreach(%y,%x)
        {
            echo %y;
        }
        foreach(%y,$keys(%x))
        {
            echo %y
        }
See also
$array

Index, Functions

KVIrc 3.4.2 Documentation
Generated by ports-i386 at Sun Mar 7 07:08:54 2010