Re: vsprintf()
| From: | Richard Quadling | Date: | Thu, 25 Apr 2013 09:07:31 +0000 |
| Subject: | Re: vsprintf() | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67142@lists.php.net to get a copy of this message | ||
On 24 April 2013 17:39, Anthony Ferrara <ircmaxell@gmail.com> wrote:
> Richard,
>
>
> Oh! Another magic method opportunity ...
>>
>> /**
>> * Operates just like __toString(), but returns an array.
>> */
>> public function __toArray();
>>
>>
>> (ducking)
>
>
> I know you're joking, but this has been brought up before (and I intend to
> bring it up again):
> https://wiki.php.net/rfc/object_cast_to_types
>
>
I'm only half joking.
--
Richard Quadling
Twitter : @RQuadling
EE : http://e-e.com/M_248814.html
Zend : http://bit.ly/9O8vFY