I have 2 Arrays
$name = Array ( [1] => Potrait Color Correction [2] => Extraction )
$number = Array ( [1] => 060716113223-13555 [2] => 49101220160607-25222 )
I'm trying to print the index 1 of first array with index 1 of 2nd array and similary for index 2
This Is My code For Printing (think it's wrong)
foreach ($name as $abc => $val) {
foreach ($number as $xyz => $valu) {
if(!in_array($val, $arr)){
//echo $val." ";echo $valu;
$arr[]=$val;
}
}
}
Problem is my array number is printing only the first value Is Getting Repeated for both
Potrait Color Correction 060716113223-13555
Extraction 060716113223-13555
im looiking for something like this TO Echo
Potrait Color Correction 060716113223-13555
Extraction 49101220160607-25222