Source Code:
(back to article)
<?php $fruits = array("apple", "orange", "banana", "grape"); asort($fruits); print_r($fruits); // Output: Array ( [0] => apple [2] => banana [1] => grape [3] => orange) ?>
Result:
Report an issue