Hello all.
Could anyone tell me how to sort the elements of an array according the the length of each element, in descending order?
So that the result would go something like:Code:$search_string='Hello this the content of a querystring.'; $keywords=split(' ',$search_string);
usort() perhaps?Code:querystring. content hello this the of a
Much appreciated.




Reply With Quote