> The idea is to add a new magic method "__toArray()" that would allow a developer to specifiy how a class is cast to an array. The idea is the same mentality of __toString(), but, for arrays.
I'd like to see this as well.
Paul M. Jones
Modernizing Legacy Applications in PHP
Solving the N+1 Problem in PHP