Re: [PHP] Sorting an array by value length.

2003-10-22 Thread David Otton
On Wed, 22 Oct 2003 11:21:13 -0700, you wrote: >I've been scouring the php.net site for a few hours now trying to find a >viable way to sort a single dimensional array( array('0'=>'fddfsdsfdds', >'1'=>','d','2' => 'gofofle'); ). so that the longest lengthed >item is at the top, and the

[PHP] Sorting an array by value length.

2003-10-22 Thread Rolf Brusletto
Hey all - I've been scouring the php.net site for a few hours now trying to find a viable way to sort a single dimensional array( array('0'=>'fddfsdsfdds', '1'=>','d','2' => 'gofofle'); ). so that the longest lengthed item is at the top, and the smallest lengthed item is at the bottom..