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\")
using array_merge_recursive ::
$arr1 = array("Item One"); $arr2 = array("Item Two"); print_r(array_merge_recursive($arr1, $arr2));
outputs
Array ( [0] => Item One [1] => Item Two )