I am currently trying to figure out how to merge a collection of arrays in php.
foreach ($Col as $Row)
{
echo("<pre>");
print_r($Row); // This returns the arrays below
echo("</pre>");
}
When I run the foreach statement it returns the following:
Array
(
[0] => First Name
[1] => Last Name
[2] => Username
)
Array
(
[0] => Bob
[1] => Dill
[2] => DBob
)
Array
(
[0] => Amy
[1] => Simpson
[2] => Asimp
)
Array
(
[0] => Doug
[1] => James
[2] => LJames
)
Is there anyway I can merge the following arrays into one array as I am interested in only grabbing the username from all of the arrays and merging them into a new array.