Skip to content

Instantly share code, notes, and snippets.

@sandeepshetty
Created May 24, 2012 05:11
Show Gist options
  • Save sandeepshetty/2779597 to your computer and use it in GitHub Desktop.
Save sandeepshetty/2779597 to your computer and use it in GitHub Desktop.
PHP array_merge example
<?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