Source Code:
(back to article)
<?php // Merging two arrays $fruits1 = array("apple", "banana"); $fruits2 = array("cherry", "mango"); $fruits = array_merge($fruits1, $fruits2); print_r($fruits); ?>
Result:
Report an issue