adspace


What is difference between array_merge and array_combine in php?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to calculate the difference between two dates using php?

1147


What is trait in php?

1068


Explain me is it possible to destroy a cookie?

1032


What does $_files means?

1166


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

1994


What is the current stable version of php?

1126


What is difference between static and final in php?

1109


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

2179


Tell me what kind of things have you done on the social side?

1067


how to detect a mobile device using php

1174


sort term descripttion form, report and uery

2254


Which variable declarations within a class is invalid in php?

1050


List some features of php that are deprecated in php7?

1024


Name and explain five of the PHP error constants?

1039


What sized websites have you worked on in the past?

1088