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
I think this is not a bug. Because mb_convert_case is depends on Unicode.
In this case, & is not alphabet. And it is not include at "Case_Ignorable" in DerivedCorePreperties.txt.
Therefore, mb_convert_case can't convert to &. That result is &Amp;
By the way, if fix(modify) this issue, this is BC breaks.
@grmblfrz, thanks for the report. As @youkidearitai said, mb_convert_case is intended to follow the case conversion algorithms in the Unicode standard.
If it doesn't, please feel free to open a bug report and show us in what way mb_convert_case does not follow the Unicode standard.
Showing us that it doesn't behave the same as ucwords doesn't mean much, because it is not intended to follow the behavior of ucwords.
Uh oh!
There was an error while loading. Please reload this page.
Description
The following code:
Resulted in this output:
But I expected this output instead:
Using
uc_words
produces the expected result:results in
PHP Version
PHP 8.4.5, PHP 8.2.26
Operating System
No response
The text was updated successfully, but these errors were encountered: