FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » multi-dimensional array sorting by index (like a table)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: multi-dimensional array sorting by index (like a table) [message #176358 is a reply to message #176357] Wed, 28 December 2011 00:24 Go to previous messageGo to previous message
Michael Joel is currently offline  Michael Joel
Messages: 42
Registered: October 2011
Karma:
Member
On Wed, 28 Dec 2011 01:03:22 +0100, Thomas Mlynarczyk
<thomas(at)mlynarczyk-webdesign(dot)de> wrote:

> Michael Joel schrieb:
>> I am guessing there is no php function to handle sorting an array as
>> you could a database? Meaning I want a multi-dimensional array sorted
>> by index 0, and "sub sorting" (whatever you call it) using index 4?
>
> Have a look at http://de3.php.net/array_multisort.
>
> Greetings,
> Thomas


Yes I saw that but I couldn't seem to get it to work.
It says it will sort a multi-dimensional array by an index.
I tried and it just kept spitting errors at me. I test the arrays to
make sure they contained data I expected.

Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: standard easy way to set up a registration/logon cookie?
Next Topic: is the php.net server down?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 05:32:48 GMT 2024

Total time taken to generate the page: 0.04242 seconds