pike.hubbe.net

[Top]
previoushas_value() int2char()next

Method indices()


Method indices

array indices(string|array|mapping|multiset|object x)

Description

Return an array of all valid indices for the value x.

For strings and arrays this is simply an array of ascending numbers.

For mappings and multisets, the array may contain any value.

For objects which define _indices() that return value will be used.

For other objects an array with all non-static symbols will be returned.

See also

values


Extracted from Pike v7.3 release 11 at 2001-11-03.