rfc:get_debug_type
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:get_debug_type [2020/02/15 14:18] – marandall | rfc:get_debug_type [2020/02/17 09:58] – Reformat as table nikic | ||
---|---|---|---|
Line 9: | Line 9: | ||
This RFC proposes to add a new function get_debug_type that will return the given type of a variable. | This RFC proposes to add a new function get_debug_type that will return the given type of a variable. | ||
- | This function would differ from gettype in that it would return native type names, e.g. " | + | This function would differ from gettype in that it would return native type names, e.g. " |
+ | |||
+ | ^ Value ^ get_debug_type() ^ gettype() ^ | ||
+ | | 0 | int | integer | | ||
+ | | 0.1 | float | double | | ||
+ | | true | bool | boolean | | ||
+ | | false | bool | boolean | | ||
+ | | " | ||
+ | | [] | array | | | ||
+ | | null | null | NULL | | ||
+ | | A class with name " | ||
+ | | An anonymous class | class@anonymous | ||
+ | | A resource | ||
+ | | A closed resource | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== |
rfc/get_debug_type.txt · Last modified: 2020/08/01 23:41 by carusogabriel