Is there a way to rearrange an array so that its in ABC order?
There is two ways I need to do this:
First,
$arrayone = array("Dog","Zebra","Cat");
I would need it to be rearranged so that its in ABC order. So after being rearranged it would look like:
$arrayone = array("Cat","Dog","Zebra");
Second,
$arraytwo = array(array("Dog","Cool"),array("Zebra","Cooler"),array("Cat","Best"));
I would need the array that holds the other arrays to be rearranged according to the value of the arrays that it holds. So after being rearranged it would look like:
$arraytwo = array(array("Cat","Best"),array("Dog","Cool"),array("Zebra","Cooler"));
Please help me if you can.
Thanks,
Phil