I know how to combine two arrays in foreach loop using array_combine()
function of PHP
But I have three arrays and I want to loop through all of three arrays at a time.
$get_id=$data->get_id;
$get_product=$data->get_product;
$get_comment=$data->get_comment;
foreach (array_combine($get_id, $get_product) as $id => $product) {
echo "$id - $product<br/>";
}
I want to iterate $get_comment
array too in this loop.
Thanks