Re: [RFC] get_debug_type

From: Date: Sat, 15 Feb 2020 15:07:01 +0000
Subject: Re: [RFC] get_debug_type
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-108599@lists.php.net to get a copy of this message
On Sat, Feb 15, 2020 at 3:33 PM 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 > > Mark Randall > marandall@php.net > Can you please add some examples for the behavior? Preferably the precise output for all primitive types, for classes and for anonymous classes. Regards, Nikita

« previous php.internals (#108599) next »