I defined a myArr = (\"Apr\",\"Mar\",\"May\"). Is there a sorting function to sort the array members by nature month sequence otherwise by alphabet.
myArr = (\"Apr\",\"Mar\",\"May\")
Th
You could use usort() and create your own function to compare months.
function monthCompare($a, $b) { $months = array('jan' => 1, 'feb' => 2..._); if($a == $b) { return 0; } return ($months[$a] > $months[$b]) ? 1 : -1; }