Skip to content

Instantly share code, notes, and snippets.

@YurePereira
Created March 1, 2017 16:20
Show Gist options
  • Select an option

  • Save YurePereira/4e151bce422ec90a7cc2670f7d61eb6b to your computer and use it in GitHub Desktop.

Select an option

Save YurePereira/4e151bce422ec90a7cc2670f7d61eb6b to your computer and use it in GitHub Desktop.
Usando a função array_merge no PHP exemplo 2.
<?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