Re: Scalar Type Casting Magic Methods
| From: | Ferenc Kovacs | Date: | Wed, 08 May 2013 08:42:58 +0000 |
| Subject: | Re: Scalar Type Casting Magic Methods | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67371@lists.php.net to get a copy of this message | ||
2013.05.08. 7:38, "Pierre du Plessis" <pierre@pcservice.co.za> ezt írta:
>
> The __toArray can be useful if you want to perform array functions on the
> object (E.G array_filter), otherwise I think it would be very useful if
the
> array functions can accept an object implementing ArrayAccess as well
> instead of just an array
yeah, I also think that ArrayObjects should be accepted where array is
expected.