#26933 [Opn->Bgs]: Function return object

From: Date: Mon, 03 Apr 2006 10:33:48 +0000
Subject: #26933 [Opn->Bgs]: Function return object
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95250@lists.php.net to get a copy of this message
ID: 26933 Updated by: tony2001@php.net Reported By: jacob at lindborg dot dk -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Windows PHP Version: 5.0.0b3 (beta3) New Comment: See bug #23920. Previous Comments: ------------------------------------------------------------------------ [2004-01-16 07:48:01] jacob at lindborg dot dk Description: ------------ In the new PHP 5 you can do something like this after a function call wich returns a object... $test = getObject()->test; but why can't you do the same with an array? $test = getObject()['test']; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26933&edit=1

« previous php.bugs (#95250) next »