I am explaining you, how to merge two array into single array in php. we can use array_merge() function in php code so that will merge two different array into single array.
here I having two array called arrayfirst and arraysecond array, I will merge both array into single array with arraymerge new array.
Example :
<?php
$arrayfirst = array("Webdeveloperindia.in", "markdevelopments.com", "pakizacity.com");
$arraysecond = array("alphaonemall.com", "indiansgottalent.com", "wordpressminds.com");
//merge two arrays into single array
$arraymerge = array_merge($arrayfirst, $arraysecond);
print_r($arraymerge);
?>
Output :
Array ( [0] => Webdeveloperindia.in [1] => markdevelopments.com [2] => pakizacity.com [3] => alphaonemall.com [4] => indiansgottalent.com [5] => wordpressminds.com )
Hello, Welcome to webdeveloperindia.in. I am a full-stack web developer. Email – [email protected] | Skype – azaruddin23. I have knowledge of PHP, Laravel, Magento 1/2, Codeigniter, WordPress, Joomla, Shopify, Git, Bitbuket, jQuery, Ajax, Javascript and ReactJS.