note 107754 deleted from language.types.array by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 18:30:56 +0000 |
| Subject: | note 107754 deleted from language.types.array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187769@lists.php.net to get a copy of this message | ||
Note Submitter: qeremy [atta] gmail [dotta] com
----
An addition for previous note;
<?php
function baz() {
// return array("a" => "aaa", "b" => "bbb",
"c" => "ccc"); // or
return ["a" => "aaa", "b" => "bbb", "c"
=> "ccc"];
}
$tre = baz()["c"];
print $tre; // ccc
?>