array_combine();
array_combine(); function is used for make a combination between two arrays. Practical example is similarly like you have defied two arrays suppose first one is arr1 and 2nd one is arr2. So there is two array arr1 and arr2. So what is gonna be happen next ?? We have to take another variable to understand easily. Suppose we have taken a variable called $comb and in this variable we will code like that array_combine($arr1,$arr2); . So according to array_combine() function first argument is stored as key and second argument as value. Now it's time to print array and we know the code of printing array is print_r();
Comments
Post a Comment