Answers for "combine to array php"

PHP
5

php combine arrays

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

merge array in php

$a1=array("red","green");
$a2=array("blue","green","yellow");
print_r(array_merge($a1,$a2));
Posted by: Guest on March-07-2021

Browse Popular Code Answers by Language