I wanted to combine three arrays inside a foreach,
$topic = explode(',',$data->topic);
$description = explode(',',$data->description);
foreach (array_combine($topic, $description) as $topic => $description)
{
echo $topic;
echo $description;
}
Which is working for two arrays, but I want for three arrays, because I want to pass
$id = explode(',',$data->id);
also in the same array which is not possible using array_combine, can anyone help by passing three arrays inside same foreach?