Method types()
- Method
types
array(type) types(string|array|mapping|multiset|object|programx)- Description
Return an array with the types of all valid indices for the value
x.- Parameter
x stringFor strings this is simply an array with int
arrayFor arrays, mappings and multisets this is simply an array with mixed.
objectFor objects which define lfun::_types() that return value is used.
For other objects an array with type types for all non-protected symbols is returned.
- Note
This function was added in Pike 7.9.
- See also