Answers for "sort names alphabetically php"

PHP
0

array sort php

<?php

$fruits = array("lemon", "orange", "banana", "apple");
sort($fruits);
foreach ($fruits as $key => $val) {
    echo $val;
}
/*
OUTPUT:
apple
banana
lemon
orange
*/
?>
Posted by: Guest on May-14-2020
0

sort names alphabetically php

hassan
Posted by: Guest on July-02-2021

Code answers related to "sort names alphabetically php"

Browse Popular Code Answers by Language