Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 27, 2019 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/41948497d859c3078b5e688d0228643b to your computer and use it in GitHub Desktop.
Save parzibyte/41948497d859c3078b5e688d0228643b to your computer and use it in GitHub Desktop.
Combinar arreglos en PHP https://parzibyte.me/blog
<?php
$gatos = array("Michi", "Misifú");
$perros = array("Maggie", "Guayaba");
$mascotas = array_merge($gatos, $perros);
print_r($mascotas);
/*
Array
(
[0] => Michi
[1] => Misifú
[2] => Maggie
[3] => Guayaba
)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment