I have a dataset with 4 rows. I am using 2 foreach loops to get my data out. The outer foreach needs to loop once and I need the inner loop to loop 4x. Is there a way to do this or do I need to split the array?
foreach($reports as $key=>$val)
{
if($val['rpt_type'] == 'Sooa')
{
foreach($val as $foo)
{
echo $foo['name'];
}
}
}