Re: Proposal for a RFC

From: Date: Sat, 04 May 2019 15:59:46 +0000
Subject: Re: Proposal for a RFC
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-105590@lists.php.net to get a copy of this message
Hi Steven, > 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 pmjones@pmjones.io http://paul-m-jones.com Modernizing Legacy Applications in PHP https://leanpub.com/mlaphp Solving the N+1 Problem in PHP https://leanpub.com/sn1php

« previous php.internals (#105590) next »