Possible Duplicate:
Printing a multi dimensional array using Foreach loop only
Merge multiple associative arrays to a single array of associative arrays
I have a script that loops scraping links from different pages and places them into an array with different keys. Now I want the script to echo all the final links into a list. As of now the only way I know to do this is like this:
foreach($matches[0][1] as $match) {
echo "$match<br />";
}
foreach($matches[1][1] as $match) {
echo "$match<br />";
}
foreach($matches[2][1] as $match) {
echo "$match<br />";
}
How can I have it do something where I don't have to do a foreach loop for each array key. Something like
foreach($matches[ALL][1] as $match) {
}