Jump to content

[SOLVED] How to sort a multidimesional array?


landysaccount

Recommended Posts

Hello.

 

I'm trying to sort a multidimensional array but, can't do it.

 

For example, I have an array:

 

$cust[id][lname][fname];

 

and I would like to be able to sort it by lname or fname, how can I do it?

 

I've tried sort( $cust[][lname][] )

 

But, can't really get it to work.

 

Any ideas?

 

Thanks in advanced for your help.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.