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

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Git post receive setup at server for git push to the production from local machine