Page 1 of 1

Sorting a 2 dimentional ARRAY

Posted: Sat Mar 24, 2007 9:30 am
by mbaroz
Hi There
I have results stored in a 2 dimension array eg:

Code: Select all

$MYARRY[Name][0]="mosuje";
$MYARRAY[UserID][0]=1;
$MYARRAY[Name][1]="avi";
$MYARRAY[UserID][1]=2;


I would like to sort the array while preserving key correlation by on the string key (Name) How can i implement it ?

Tnanks
moshe

Posted: Sat Mar 24, 2007 10:24 am
by jayshields
Searched this forum, Google, php.net? Anything? There's loads on this.