Re: [RFC] get_debug_type
| From: | Mike Schinkel | Date: | Sun, 16 Feb 2020 10:16:03 +0000 |
| Subject: | Re: [RFC] get_debug_type | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108616@lists.php.net to get a copy of this message | ||
> On Feb 15, 2020, at 9:32 AM, Mark Randall <markyr@gmail.com> wrote:
>
> Greetings,
>
> I offer a short RFC to add a new function, get_debug_type, which would
> return the type name of a variable, automatically resolving the class
> name in the event of it being an object.
>
> Unlike gettype, this function will return the true name of scalar
> types, rather than their aliases, thus get_debug_type will return
> "int" rather than "integer" etc.
>
> https://wiki.php.net/rfc/get_debug_type
>
Why "debug" type?
-Mike