Click here to get back home

sort aray by element length

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
sort aray by element length lawpoop 06-24-2008
Get Chitika Premium
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',
)

?

Similar ThreadsPosted
[SimpleXML] echo the whole content of an element (without the element) February 21, 2008, 6:54 am
Re: Length of MP3? March 2, 2007, 1:41 pm
Length of MP3? March 2, 2007, 12:18 pm
is it possible to get the length of an MP3 files from PHP? August 21, 2005, 2:11 pm
Variable name length October 18, 2005, 7:48 pm
PHP Tokenize a String by its length December 31, 2005, 1:52 am
php and default salt length July 26, 2006, 5:46 am
Array length in SimpleXML November 24, 2006, 11:58 am
binary string length May 28, 2007, 11:40 am
Problem with length of Multibyte String September 5, 2004, 6:27 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap