I have been trying (unsuccessfully) to merge the output of multiple arrays into a single array. An example of what I tried was:
$data1 = array(\"cat\", \"goat\")
You could add the items to a new array sequentially to achieve your desired result:
: $aResult = array(); foreach ($lines as $inner) { $item = array($inner[1]); $aResult[] = $item; } var_dump($aResult);