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
* @param int (optional) -1 lowercase only, +1 uppercase only, 1 both cases
According the sourcecode, you may skip the parameter, or you have to set the parameter to zero for translate both cases, NOT 1 as declared in the description of the function.
See:
if($case <= 0){
if ( is_null($UTF8_LOWER_ACCENTS) ) {
...if($case >= 0){
if ( is_null($UTF8_UPPER_ACCENTS) ) {
...
So the right parameter description would be:
* @param int (optional) -1 lowercase only, +1 uppercase only, 0 both cases
The text was updated successfully, but these errors were encountered:
string/src/phputf8/utils/ascii.php
Line 145 in c7a9330
According the sourcecode, you may skip the parameter, or you have to set the parameter to zero for translate both cases, NOT 1 as declared in the description of the function.
See:
So the right parameter description would be:
The text was updated successfully, but these errors were encountered: