|
get_debug_typeGets the type name of a variable in a way that is suitable for debugging Description
string get_debug_type(mixed
$value )
Returns the resolved name of the PHP variable This function differs from gettype in that it returns type names that are more consistent with actual usage, rather than those present for historical reasons. Parameters
Return ValuesPossible values for the returned string are:
Examples
Example #1 get_debug_type example
The above example will output something similar to: null bool int float string array resource (stream) resource (closed) stdClass class@anonymous Foo\A@anonymous Foo\A@anonymous Foo\C@anonymous Foo\C@anonymous See Also
|