Re: static type-references
| From: | Steve Clay | Date: | Thu, 14 Mar 2013 17:49:08 +0000 |
| Subject: | Re: static type-references | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-66624@lists.php.net to get a copy of this message | ||
On 3/14/13 12:26 PM, Rasmus Schultz wrote:
Hey List, What do you think about adding a typeof() operator to PHP?gettype(), get_class(). If you wanted gettype() to return a classname instead of "object", then you'd have to add reserved words for all the native types. Otherwise: class string {} gettype(new string); ??? Steve Clay -- http://www.mrclay.org/