rfc:get_debug_type

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:get_debug_type [2020/02/17 09:45] marandallrfc:get_debug_type [2020/02/17 09:45] marandall
Line 11: Line 11:
 This function would differ from gettype in that it would return native type names, e.g. "int" rather than "integer" and would automatically resolve class names. This function would differ from gettype in that it would return native type names, e.g. "int" rather than "integer" and would automatically resolve class names.
  
-  * 0 => int  (gettype: integer) +  * 0 => int -- (gettype: integer) 
-  * 0.1 => float  (gettype: double) +  * 0.1 => float -- (gettype: double) 
-  * true => bool   (gettype: boolean) +  * true => bool --  (gettype: boolean) 
-  * false => bool  (gettype: boolean)+  * false => bool -- (gettype: boolean)
   * "hello" => string     * "hello" => string  
   * [] => array     * [] => array  
-  * null => null  (gettype: NULL) +  * null => null -- (gettype: NULL) 
-  * A class with name "Foo\Bar" => foo\bar  (previously: object) +  * A class with name "Foo\Bar" => foo\bar -- (gettype: object) 
-  * An anonymous class => class@anonymous  (previously: object) +  * An anonymous class => class@anonymous -- (gettype: object) 
-  * A resource => resource (xxx)  (previously: resource)+  * A resource => resource (xxx) -- (gettype: resource)
   * A closed resource => resource (closed)   * A closed resource => resource (closed)
  
rfc/get_debug_type.txt · Last modified: 2020/08/01 23:41 by carusogabriel