We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ksort() before PHP 8.2 sorted first string keys, then numeric keys. Since PHP 8.2 it sorts first numeric keys, then string keys.
ksort()
I think this change should be noted in the ksort documentation and in the changelog.
ksort
I have tested these flags:
SORT_REGULAR
SORT_ASC
SORT_DESC
SORT_NATURAL
I don't know if any other sorting functions are affected
See https://3v4l.org/T2EDs
The text was updated successfully, but these errors were encountered:
Indeed, so far this is only mentioned in the migration guide,
Sorry, something went wrong.
4acad9b
No branches or pull requests
ksort()
before PHP 8.2 sorted first string keys, then numeric keys. Since PHP 8.2 it sorts first numeric keys, then string keys.I think this change should be noted in the
ksort
documentation and in the changelog.I have tested these flags:
SORT_REGULAR
,SORT_ASC
,SORT_DESC
- behavior changedSORT_NATURAL
- behavior is the sameI don't know if any other sorting functions are affected
See https://3v4l.org/T2EDs
The text was updated successfully, but these errors were encountered: