clearPHP
clearPHP copied to clipboard
Assigning to array with list has changed in PHP 7.
I'd recommend to alter the recommendation to always sort by key rather than an array_reverse.
Example: https://3v4l.org/scmZ8
Dag, Frank.
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.