Here comes my noob ass question of the day. I have an array called $match1 that I want to loop through:
However, I only want the values $match[1][0], $match[1][1], $match[1][2] etc and not $match[0][0], $match[0][1], $match[0][2] . How do I write the loop to do that?
Code:
foreach ($match1 as $v1) {
foreach ($v1 as $v2) {
$v2 = str_replace($clean, '',$v2);
echo "$v2\n";
}
}
However, I only want the values $match[1][0], $match[1][1], $match[1][2] etc and not $match[0][0], $match[0][1], $match[0][2] . How do I write the loop to do that?