Articles Posted in the " array sort " Category

  • sort

    sort

    Syntax: bool sort ( array &$array [, int $sort_flags = SORT_REGULAR ] ) Description: Sort an array <?php $fruits = array("lemon", "orange", "banana", "apple"); sort($fruits); print_r($fruits); ?> OUTPUT Array ( [0] => apple [1] […]