Created
March 1, 2017 16:20
-
-
Save YurePereira/4e151bce422ec90a7cc2670f7d61eb6b to your computer and use it in GitHub Desktop.
Usando a função array_merge no PHP exemplo 2.
This file contains hidden or 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 | |
| $listFrults1 = array( | |
| 'p' => 'Pineapple', | |
| 'c' => 'Cashew', | |
| 'a' => 'Apple', | |
| 'o' => 'Orange' | |
| ); | |
| $listFrults2 = array( | |
| 's' => 'Strawberry', | |
| 'p' => 'Pear', | |
| 'c' => 'Coconut', | |
| 'g' => 'Grape', | |
| ); | |
| $listFullFrults = array_merge($listFrults1, $listFrults2); | |
| print_r($listFullFrults); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment