Tag Archives: php sort

PHP Sort Functions

1)sort-sort array in ascending order 2)rsort-sort arrays in descending order 3)asort-sort associative array in ascending order-based on value 4)ksort-sort associative arrays in ascending order -based on key 5)arsort-sort associative arrays in descending order-based on value 6)krsort associative arrays in descending order-based on key