I got an array with the key of my group group
$ array = [' Apr 1-15 '= & gt; [], '1-15 May' => [], 'Apr 16-30 = & gt; [],];
I want to sort them out like this,
$ array = ['Apr 1-15' = & gt; [], 'Apr 16-30 = & gt; [], '1-15 May' => [],];
What I have done now:
uksort ($ data, function ($ a, $ b) {$ a = explosion ('', $ A); $ b = Explosion ('', $ b); Back Strass CMP ($ a [0], $ b [0]);});
But I still can not sort them correctly. Any help in deciding this? Thanks
No comments:
Post a Comment