Re: Suggestion: echo function(var)[0];

From: Date: Fri, 04 Jun 2010 05:52:17 +0000
Subject: Re: Suggestion: echo function(var)[0];
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-48643@lists.php.net to get a copy of this message
Hi!
function call chaining (f()() if f() returns function), and array dereferencing (f()[0]) - (Stas)
I did patch for f()() - it's referenced at http://wiki.php.net/rfc/fcallfcall - but not for f()[] - didn't have time for that yet. It should not be too hard to do, one just has to be careful with refcounts so that the returned result could be freed properly and without hurting the referred element. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#48643) next »