array_merge

It merge arrays

Example

<?php
echo “<pre>”;
$array1 =array(1 => ‘PHP’);
$array2 = array(1 => ‘ASP’);
$array3 = array_merge($array2,$array1);
print_r($array3);
?>

Output

Array
(
[0] => ASP
[1] => PHP
)


Share