Skip to main content

typeof

Discworld driver help

typeof

Name

typeof() - return the type of an expression

Synopsis

int typeof( mixed var );

Description

Return the type of expression `var'. The return values are given in the driver include <type.h>. They are:

INT"int"
STRING"string"
ARRAY"array"
OBJECT"object"
MAPPING"mapping"
FUNCTION"function"
FLOAT"float"
BUFFER"buffer"
CLASS"class"

See also

intp(), stringp(), arrayp(), objectp(), mappingp(), functionp(), floatp(), bufferp(), classp()