Answers for "array_merge reverse"

PHP
1

array_merge

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

array_merge

<?php 
$array1 = array(1,"dos",3,4,"cinco",9);
$array2 = array(1,"hola",3,"adios",5,6);			
//muestro los arrays
var_export ($array1);
var_export ($array2);
//uno los arrays y muestro el array resultante
$array_resultante= array_merge($array1,$array2);
var_export ($array_resultante);
?>
Posted by: Guest on June-23-2021

Browse Popular Code Answers by Language