I’m trying to save code and have multiple php for each going on at the same time. Is it possible.
$holes9 = string(lots of information separated by,)
$stroke = string(other info separated by,)
$index = string(other info separated by,)
$holes9 = explode(",",$holes9);
foreach ($holes9 as $holes) {
echo '<div class="hole"><b>'.$holes.'</b></div>
<div class="stroke"></div>
<div class="index"></div>
';
};
As you can see my foreach only applies to $holes9 as $holes. How do I get the other two bits of info.
If
$holes,$strokeand$indexhave the same amount of “elements”, it’s enough with singleforeach: