int typeof( mixed var );
Return the type of an expression. 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"
Beek @ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere