Created
July 6, 2011 07:25
-
-
Save mikale/1066739 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function fruit () { | |
| return array('a' => 'apple', 'b' => 'banana'); | |
| } | |
| echo fruit()['a']; // apple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this work? If so, what version of PHP does it need? 5.4?