Answers for "how merge different arrays"

PHP
5

php combine arrays

$output = array_merge($array1, $array2);
Posted by: Guest on June-03-2020
4

js merge 2 lists

var array1 = ["Vijendra", "Singh"];
var array2 = ["Singh", "Shakya"];

console.log(array1.concat(array2));
// output: ["Vijendra", "Singh", "Singh", "Shakya"]
Posted by: Guest on July-13-2020

Browse Popular Code Answers by Language