array:2 [▼
"one" => "<p>Loop<br></p>"
"two" => array:2 [▼
"data" => array:1 [▼
1 => "Dale",
2 => "Moon",
3 => "Sun",
]
"rate" => array:1 [▼
1 => "345",
2 => "456",
3 => "567",
]
]
]
foreach ($arr['two'] as $ar) {
echo $ar['data'].$ar['rate'];
}
foreach ($arr['two']['data'] as $key => $val) {
echo $val . ' ' . $arr['two']['rate'][$key], PHP_EOL;
}
// Считаем кол-во элементов в data
$count = count($arr['two']['data]);
// Выводим нужные данные нам
for($i=0;$i <$count; $i++ ) {
echo $arr['two']['data'][$i] . ' ' . arr['two']['rate'][$i] . PHP_EOL;
}
Dale 345
Moon 456
Sun 567