Re: Object Casting - An Alternative to Type Hinting
| From: | Ángel González | Date: | Mon, 27 Feb 2012 15:56:21 +0000 |
| Subject: | Re: Object Casting - An Alternative to Type Hinting | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-58141@lists.php.net to get a copy of this message | ||
On 27/02/12 16:12, Richard Lynch wrote:
> Oh, and string is a reserved word, so this won't work as-is, though
> that's obviously picuyane.
It's not, you can perfectly define your own class called 'string'. I'd
be much easier if it were, though.