Created
October 16, 2019 01:48
-
-
Save parzibyte/e57dfa717f9059ee94e891b72a9a9d09 to your computer and use it in GitHub Desktop.
This file contains 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 | |
$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