adspace


Difference between array_combine and array_merge?

Answer Posted / Rohit Sachan

In PHP, 'array_merge' combines multiple arrays into one multidimensional array, preserving the keys of the original arrays when there are duplicates. 'array_combine', on the other hand, takes two arrays as arguments and creates a new indexed array where each key from the first argument corresponds to its corresponding value in the second argument.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1078


What is the difference between htmlentities() and htmlspecialchars()?

1091


What sized websites have you worked on in the past?

1086


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2177


sort term descripttion form, report and uery

2254


List some features of php that are deprecated in php7?

1024


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1989


What is the current stable version of php? What advance thing in php7?

1095


how to detect a mobile device using php

1174


How to create a web form?

1111


Write a program using while loop?

1118


What does $_files means?

1162


How to calculate the difference between two dates using php?

1144


What is the current stable version of php?

1124


What is difference between static and final in php?

1109