Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 16, 2019 01:48
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/e57dfa717f9059ee94e891b72a9a9d09 to your computer and use it in GitHub Desktop.
Save parzibyte/e57dfa717f9059ee94e891b72a9a9d09 to your computer and use it in GitHub Desktop.
<?php
$nombres = ["josé", "pedro", "raúl", "maría", "luisa", "adriana", "angela", "alan"];
$apellidos = ["pérez", "rodriguez", "hernández", "martínez", "garcía", "marín", "sánchez", "smith", "rivera", "alderson"];
$nombreAleatorio = $nombres[ mt_rand(0, count($nombres) -1) ];
$apellidoAleatorio = $apellidos[ mt_rand(0, count($apellidos) -1) ];
$otroApellidoAleatorio = $apellidos[ mt_rand(0, count($apellidos) -1) ];
echo "$nombreAleatorio $apellidoAleatorio $otroApellidoAleatorio";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment