If I have the following array. What would be the best way to add a element to list[] for the last element of $myArray[]? Note that list[] has numerical indexes (i.e. not associative). Thanks!
$myArray[] = array( 'name' => 'hello', 'list' => array() );
If $myArray is not associative
or
with this method you change the position of the array pointer.