note 90051 deleted from ref.array by danbrown

From: Date: Fri, 03 Apr 2009 12:43:28 +0000
Subject: note 90051 deleted from ref.array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152790@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- I need to obtain this simple stylish-result: <?php function dummy( ) { return array( 1, 2, 3 ); } echo dummy( )[ 1 ]; // DON'T WORK? ?> So what is the "compress"/"inline" syntax to access array element without having to assingn function return to a variable ( $foo = dummy(); echo $foo[1]; ) Help needed :)

« previous php.notes (#152790) next »