What is difference between array_merge and array_combine in php?



What is difference between array_merge and array_combine in php?..

Answer / Yashveer Singh

array_merge() combines multiple arrays to produce one single array, with any duplicated keys being overwritten. array_combine() creates a new array using specified keys and their corresponding values from an indexed array.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Explain Booleans in PHP?

1 Answers  


How many types of functions are there in php?

1 Answers  


What are the php functions?

1 Answers  


What are the different tables(engine) present in mysql, which one is default?

1 Answers  


What is the difference between html and php?

1 Answers  


What is the main difference between require() and require_once()?

1 Answers  


When to use get and post request?

1 Answers  


What is namespace and use in php?

1 Answers  


How to set cookies in PHP?

1 Answers  


What is PECL?

1 Answers  


Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?

1 Answers  


what are the various PHP Script Optimization techniques?

1 Answers   IBM, Krify Software Technologies, TCL,


Categories