PHP - Array Functions
Which PHP function correctly sorts the array
$arr in ascending order?$arr in ascending order?sort() sorts array values in ascending order and reindexes keys.asort() sorts while preserving keys, ksort() sorts by keys, and rsort() sorts in descending order.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions