Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Andrew Senner
July 29, 2011, 4:07 am
rate this thread
least I couldn't put the match together.
I'm looking for a way to sort and array by value type
array(array(), array(), "value", "value", array(), "value", "value",
sort of like a directory tree.. it's a giant array of configuration
data and the values for each array are mixed in with child arrays.
The outcome I would like to see is:
array("value", "value", "value", "value", array(), array(), array());
after the sort with the values before the sub arrays, I don't need the
actual values sorted... just their types sorted.... I'm thinking I
have to write my own comparison callback and use usort??? Fill me in
and thanks for your time.