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\")
There may be a better way, but this should work. Just loop through and merge each array individually:
$items = array(); foreach ($lines as $inner){ $item = array($inner[1]); $items = array_merge($items, $item); } echo ""; print_r($items); echo "";
"; print_r($items); echo "