__toString(), __toArray()

From: Date: Mon, 11 Jan 2010 18:31:33 +0000
Subject: __toString(), __toArray()
Groups: php.internals 
Request: Send a blank email to internals+get-46643@lists.php.net to get a copy of this message
I know there's been requests to add a __toArray() and most of the arguments against it is that there are too many magic functions already. I just thought I'd propose an alternative that would satisfy all of them. Why not a __cast($Type) magic function?

« previous php.internals (#46643) next »