Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • array
  • list
  • sort

PHP - Sort list of numbers

Methods for sorting a list/array of integers or decimal values.

0
423
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

Using sort

This function sorts an array. Elements will be arranged from lowest to highest when this function has completed. documentation

sort({{list}})
php

Notes

last update: Nov. 14, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Get random item from array
  • Append item to array
  • Get last element of array
  • Concatenate two arrays
  • Array length

Other language

  • Scala
  • Python
  • Ruby

Random task

  • Sort objects by function
  • If else
  • Run docker container
  • Set maximum number of relations in ManyToManyField in Django form
  • Lower case string
  • Blog
  • About
  • License