The language is PHP. I have one foreach ( $a as $b) and another foreach ($c as $d => $e). How do i combine them to read as one. I tired foreach (($a as $b) && ($c as
I don't understand what you're trying to do. If you want to reach them one after the other just use two loops:
foreach ($a as $b) { ... }
foreach ($c as $d => $e) { ... }
If you want all combinations from $a and $c:
foreach ($a as $b) {
foreach ($c as $d => $e) {
// do stuff
}
}
I guess you could do something like:
foreach (array_merge($a, $c) as $k => $v) {
...
}
but I wouldn't necessarily advise it.