Jump to content

GATC

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by GATC

  1. O.O We can? How? O.O
  2. Hi. I got a little problem here, I need to sort a 3D array. My array is like that: $myArray=[$i][$e][2] $i and $e are variable. I have data in the [$i][$e][0] and [$i][$e][1] slot. What I need is to have my [$i][$e][1] sorted with increasing value with the modification around the $i Example: Before sorting [1][6][1] = 16 [2][6][1] = 12 [3][6][1] = "" [8][6][1] = 14 [9][6][1] = "" [10][6][1]=14 [12][6][1] = "" [14][6][1]=15 [15][6][1]=13 After sorting [1][6][1] = 12 [2][6][1[ = 13 [3][6][1] = 14 [4][6][1] = 14 [5][6][1] = 15 [6][6][1] = 16 If two value are the same, they are sorted by the [$i][$e][0] value (and "ligne" with "" value are suppressed) Hope I'm clear ^^' Thx for "any" answer
×
×
  • Create New...