With array_merge() to concatenate two arrays in PHP Let's say we have two arrays like Then concatenate above two arrays by array_merge() This will return below output
$array1 = array('PHP','Framework');
$array2 = array('Laravel','Codeigniter');
<!DOCTYPE html>
<html>
<body>
<?php
$nameArray1 = array('PHP','Framework');
$nameArray2 = array('Laravel','Codeigniter');
$result = array_merge($array1, $array2);
print_r($result);
?>
</body>
</html>
Array ( [0] => PHP [1] => Framework[2] => Laravel[3] => Codeigniter)
How to Concatenate two arrays in PHP?
How to get last day of Month using PHP?
How to check php version of xampp in windows
How to Remove White Space from a String in PHP