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 [email protected] to get a copy of this message
2013.05.08. 7:38, "Pierre du Plessis" <[email protected]> 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.
Thread (8 messages)
« previous | php.internals (#67371) | next » |
---|