Jump to content

sorting help


peri

Recommended Posts

I've got a 2d array that looks like this:

 

array(3) {

  ["5F"]=>

  array(6) {

    ["pid"]=>

    int(234)

    ["name"]=>

    string(7) "n/a n/a"   

  }

 

  ["52C"]=>

  array(6) {

    ["pid"]=>

    int(42)

    ["name"]=>

    string(7) "n/a n/a"   

  }

 

  ["3F"]=>

  array(6) {

    ["pid"]=>

    int(4452)

    ["name"]=>

    string(7) "n/a n/a"   

  }

}

 

How do I sort it so that they keys appear in the order: 3F, 5F, 52C?

Link to comment
https://forums.phpfreaks.com/topic/125526-sorting-help/
Share on other sites

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.