I have an array stored in a variable $data. The array has names in the first row and a value in the second row. The array is very big so I need a way to take the five highest values from it and the name from those value. For example I have this array:
[0]=>
    array(1447) {
      [1]=>
      array(3) {
        [0]=>
        string(11) "Cris"
        [2]=>
        string(1) "11"
      }
      [2]=>
      array(3) {
        [0]=>
        string(7) "Alan"
        [2]=>
        string(1) "28"
      }
      [3]=>
      array(3) {
        [0]=>
        string(6) "Alex"
        [2]=>
        string(1) "50"
      }
      [4]=>
      array(3) {
        [0]=>
        string(6) "Zone"
        [1]=>
        string(1) "22"
      }
      [5]=>
      array(3) {
        [0]=>
        string(6) "Ana"
        [2]=>
        string(1) "1"
      }
      [6]=>
      array(3) {
        [0]=>
        string(6) "Fisca"
        [1]=>
        string(1) "5"
      }
In this case I should display: Alex 50, Alan 28, Zone 22, Cris 11 and Fisca 5. I tried to find a solution but I don't know how should I make a top of array values. Can you help me please? Thank you in advance.
 
     
     
     
    