|
Posted by lawpoop on June 24, 2008, 12:58 pm
Please log in for more thread options
Is there a function to sort an array by the length of the element?
Such as:
$array = array(
'a',
'the'
'if'
);
length_sort($array);
array(
'1' => 'a',
'2' => 'if',
'3' => 'the',
)
?
|