Jump to content

Morri

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

About Morri

  • Birthday 09/28/1987

Contact Methods

  • Website URL
    http://escape2reality.co.uk

Profile Information

  • Gender
    Male
  • Location
    Scotland

Morri's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I really should browse the net a bit before i post... ::) :-[ More or less found the answer then i modified it to get the code below. [code]function compare($x, $y) { if ( $x[subkey1] == $y[subkey1] )   return 0; else if ( $x[subkey1] < $y[subkey1] )   return -1; else   return 1; } uasort($fonts, 'compare');[/code] Anyway back to coding the rest of this thing...
  2. I have a multi-dimensional array in the following format: Array (     [key1] => Array         (             [subkey1] => name1             [subkey2] => ...             [subkey3] => ...             [subkey4] => ...             [subkey5] => ...             [subkey6] => ...             [subkey7] => ...         )     [key2] => Array         (             [subkey1] => name2             [subkey2] => ...             [subkey3] => ...             [subkey4] => ...             [subkey5] => ...             [subkey6] => ...             [subkey7] => ...         ) Is there anyway i can sort the array by a subkey value (name# for instance)? I'd be greatful for any help. Thanks,         John
×
×
  • 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.