Answers for "php how to merge two arrays"

PHP
5

php combine arrays

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

array marge in php

<?php
$a1=array("red","green");
$a2=array("blue","yellow");
print_r(array_merge($a1,$a2));
?>
Posted by: Guest on January-16-2021
2

php array merge

array_merge ([ array $... ] ) : array
Posted by: Guest on August-31-2020

Browse Popular Code Answers by Language