#36146 [Opn->Bgs]: Language syntax: using arrays returned from functions inline.

From: Date: Mon, 03 Apr 2006 11:02:21 +0000
Subject: #36146 [Opn->Bgs]: Language syntax: using arrays returned from functions inline.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95262@lists.php.net to get a copy of this message
ID: 36146 Updated by: tony2001@php.net Reported By: rolf at winmutt dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: any PHP Version: 5.1.2 New Comment: Duplicate of bug #23022. Previous Comments: ------------------------------------------------------------------------ [2006-01-24 19:20:08] rolf at winmutt dot com Description: ------------ Recently support for returned objects were added, eg: somefunc()->someotherfunc(); It would be nice to see the same for arrays : $x = somefunc()[arraykey]; Especially for simpleXML xpath return values: echo $xml->xpath('nodes/')[1]; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36146&edit=1

« previous php.bugs (#95262) next »