1 2 3 4 5 6 7 8 9 10
<?php function get_array() { return array('foo', 'bar'); } $arr = get_array(); echo $arr[0]; ?>
1
foo