• sorting arrays

      1 comment

    Both sort() and asort() is used to sort values in ascending order.To sort them in descending order what are the functions that we can use?

    rsort() – Where it resets key associations as well.
    arsort() – Where it sorts in descending order, while keeping the key associations as well.

    Related posts:

    1. Array sorting
    2. Sorting arrays
    3. Arrays
    • Hello, I like your blog. This is a good site and I wanted to post a little note to let you know, great job! Thanks Jessica

    Write a comment