How to order array items by date format YYYY MM DD in PHP? [closed]

Simply use ksort() function:

ksort($arraywithDateKeys);

Leave a Comment