Re: vsprintf()
| From: | Anthony Ferrara | Date: | Wed, 24 Apr 2013 16:39:03 +0000 |
| Subject: | Re: vsprintf() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67130@lists.php.net to get a copy of this message | ||
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