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

Reply via email to