Thank you both for the advice and direction. After restructure of the array into. I'm sure it can be cleaner but I don't know a lot about PHP, only what I have read or found on forums.
0 =>
array (
'start' => '201601221400',
),
1 =>
array (
'time' => '201601221400',
'name' => 'ABC',
'title' => 'FABLife',
'desc' => 'Mark Cuban (``Shark Tank\'\'); top five must-haves; collectors try to guess the prices of celebrity memorabilia; creating a high-end playroom and eliminating toy clutter without breaking the bank.',
),
I was able to parse as needed with the following:
$counter=0;
//CONTROL
foreach ($items as $key=>$value){
echo "NEW CONTROL ".$value['start']."<br>";
foreach ($items as $item=>$time){
if($time['time']==$value['start']){
if(empty($time['time'])){
}else{
$counter=$counter + 1;
$match[]=array(
'time'=>$time['time'],
'title'=>$time['title'],
'desc'=>$time['desc'],
);
if ($counter==5){break;}
if ($counter==5){break;}
}
}
}
$counter=0;
}
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.