note 39458 deleted from ref.array by didou
| From: | didou@php.net | Date: | Thu, 29 Jan 2004 12:58:18 +0000 |
| Subject: | note 39458 deleted from ref.array by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64373@lists.php.net to get a copy of this message | ||
Note Submitter: volf44@mail.ru
----
How about this:
<?php
// to do: get first element of an array returned by function
$first = array( 0, 1, 2 )[ 0 ]; // syntax error here
// work around
$first = array( 0, 1, 2 );
$first = $first[ 0 ];
?>