Sorry if it's been said in the discussion so far, but I do not see why `print_r` should convert anything to an array. It accepts multiple kinds of types including strings, numbers, and so on, and I think adding this behavior to `print_r` is a different thing than wanting a standard way for objects to be converted into arrays.
And on that note, what is the motivation for wanting a magic method for converting an object into an array? Why not make it an explicit operation? I do not see the point of the magic here, except _maybe_ for adding it to `ArrayObject` or something to allow it to work with the array_* functions that work without references, in which case I think we think this RFC is the wrong approach as it is inadequate for that purpose. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php