You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, ksort is good too, especially with array appending ($b[], $b[], ...).
array_reverse + the 2nd parameter set to True (preserve keys) is also good.
I'll mention explicitely the 2nd parameter of array_reverse, and ksort.
That will be better.
I'd recommend to alter the recommendation to always sort by key rather than an array_reverse.
Example: https://3v4l.org/scmZ8
The text was updated successfully, but these errors were encountered: