Re: Sorting through an array

From: Date: Tue, 06 May 2014 16:01:01 +0000
Subject: Re: Sorting through an array
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-323246@lists.php.net to get a copy of this message
array_multisort(array_column($result, 'bibleAnagramWord'), SORT_ASC, $result); On Tue, May 6, 2014 at 9:29 AM, Tedd Sperling <tedd@sperling.com> wrote: > On May 5, 2014, at 11:26 PM, Ron Piggott <ron.piggott@actsministries.org> > wrote: > > > > > How can I sort this array alphabetically by “ bibleAnagramWord “ --- > keeping it with the same “ reference “ and “ most_popular_views “ values? > > Try: > > array_multisort($bibleAnagramWord, $reference, $most_popular_views); > > Cheers, > > tedd > > _______________ > tedd sperling > tedd@sperling.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#323246) next »