public static function StrCaseReverse($pValue = '')
    {
        if (self::getIsMbstringEnabled()) {
            $characters = self::mb_str_split($pValue);
            foreach ($characters as &$character) {
                if (self::mb_is_upper($character)) {
                    $character = mb_strtolower($character, 'UTF-8');
                } else {
                    $character = mb_strtoupper($character, 'UTF-8');
                }
            }
            return implode('', $characters);
        }
        return strtolower($pValue) ^ strtoupper($pValue) ^ $pValue;
    }
public static function StrCaseReverse($pValue = '')
    {
        if (self::getIsMbstringEnabled()) {
            $characters = self::mb_str_split($pValue);
            foreach ($characters as &$character) {
                if (self::mb_is_upper($character)) {
                    $character = mb_strtolower($character, 'UTF-8');
                } else {
                    $character = mb_strtoupper($character, 'UTF-8');
                }
            }
            return implode('', $characters);
        }
        return strtolower($pValue) ^ strtoupper($pValue) ^ $pValue;
    }
public static function StrCaseReverse ( $ pValue = '' ) { if ( self :: getIsMbstringEnabled ( ) ) { $ characters = self :: mb_str_split ( $ pValue ) ; foreach ( $ characters as & $ character ) { if ( self :: mb_is_upper ( $ character ) ) { $ character = mb_strtolower ( $ character , 'UTF-8' ) ; } else { $ character = mb_strtoupper ( $ character , 'UTF-8' ) ; } } return implode ( '' , $ characters ) ; } return strtolower ( $ pValue ) ^ strtoupper ( $ pValue ) ^ $ pValue ; }
Reverse the case of a string, so that all uppercase characters become lowercase
and all lowercase characters become uppercase

@param string $pValue UTF-8 encoded string
@return string
Reverse the case of a string so that all uppercase characters become lowercase and all lowercase characters become uppercase