Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46643 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20945 invoked from network); 11 Jan 2010 18:31:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2010 18:31:36 -0000 X-Host-Fingerprint: 75.72.251.154 c-75-72-251-154.hsd1.mn.comcast.net Received: from [75.72.251.154] ([75.72.251.154:18710] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/85-26332-88E6B4B4 for ; Mon, 11 Jan 2010 13:31:36 -0500 Message-ID: To: internals@lists.php.net Date: Mon, 11 Jan 2010 12:31:33 -0600 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 75.72.251.154 Subject: __toString(), __toArray() From: cpriest@warpmail.net (Clint Priest) 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?