Created
May 24, 2012 05:11
-
-
Save sandeepshetty/2779597 to your computer and use it in GitHub Desktop.
PHP array_merge example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fruits = array('apples', 'oranges'); | |
$more_fruits = array('bananas', 'mangoes'); | |
$all_fruits = array_merge($fruits, $more_fruits); | |
print_r($all_fruits); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment