| Viewed 137 times

How I should sort an array by string length?


I need a function that takes an array of strings and return an array, sorted from shortest to longest.

PHP