i want a key value pair from two different arrays there are two cases. 1) both are equal 2) second array is big than first array
my code is
$array1=array("anu","jinu");
$array2=array("1","2","0");
i want to make a pair like
anu-1
jinu-2
if $array1 elements are finished then do not have to pair with $array2
from the example we can ignore the third element in $array2
i tried to apply array_combine,but its not practical with two unequal arrays
if anybody knows solution please help me
$array2will never be shorter than$array1.