Created
August 7, 2019 23:27
-
-
Save parzibyte/7063469a798cdefcf28e71e2a9c291e5 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 | |
$arreglo = ["asd", "123", "hola", "mundo", "parzibyte.me"]; | |
echo "Antes de ordenar...\n"; | |
print_r($arreglo); | |
// Lo ordenamos | |
sort($arreglo); | |
// Aquí ya tenemos el arreglo ordenado | |
echo "Después de ordenar...\n"; | |
print_r($arreglo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment