Answers for "php array order alphabetically"

PHP
0

php array order alphabetically

// SORT ARRAY ALPHABETICALLY
$frutas = array("limón", "naranja", "banana", "albaricoque");
sort($frutas);
foreach ($frutas as $clave => $valor) {
    echo "frutas[" . $clave . "] = " . $valor . "n";
}
Posted by: Guest on January-13-2022

Code answers related to "php array order alphabetically"

Browse Popular Code Answers by Language