[ create a new paste ] login | about

Link: http://codepad.org/h2CU9dYK    [ raw code | output | fork ]

PHP, pasted on May 13:
1
2
3
4
5
6
7
8
9
<?php 

function get_array() {
  return array('foo', 'bar');
}

echo get_array()[0];

?>


Output:
1
2

Parse error: syntax error, unexpected '[', expecting ',' or ';' on line 7


Create a new paste based on this one


Comments: