I had a quick search around Google and php.net but couldnt find a solution to ordering a long list of words into string length. So that the shortest is at the top. Is this possible with PHP? If so could someone please guide me as to how to acheive this. Thanks!
function len($a, $b) { return strlen($a) - strlen($b); } usort($array, 'len'); PHP: Knock yourself out