public function obfuscate($value)
    {
        $safe = '';

        foreach (str_split($value) as $letter) {
            if (ord($letter) > 128) {
                return $letter;
            }

            switch (rand(1, 3)) {
                case 1:
                $safe .= '&#'.ord($letter).';';
                break;
                case 2:
                $safe .= '&#x'.dechex(ord($letter)).';';
                break;
                case 3:
                $safe .= $letter;
            }
        }

        return $safe;
    }
public function obfuscate($value)
    {
        $safe = '';

        foreach (str_split($value) as $letter) {
            if (ord($letter) > 128) {
                return $letter;
            }

            switch (rand(1, 3)) {
                case 1:
                $safe .= '&#'.ord($letter).';';
                break;
                case 2:
                $safe .= '&#x'.dechex(ord($letter)).';';
                break;
                case 3:
                $safe .= $letter;
            }
        }

        return $safe;
    }
public function obfuscate ( $ value ) { $ safe = '' ; foreach ( str_split ( $ value ) as $ letter ) { if ( ord ( $ letter ) > 128 ) { return $ letter ; } switch ( rand ( 1 , 3 ) ) { case 1 : $ safe .= '&#' . ord ( $ letter ) . ';' ; break ; case 2 : $ safe .= '&#x' . dechex ( ord ( $ letter ) ) . ';' ; break ; case 3 : $ safe .= $ letter ; } } return $ safe ; }
Obfuscates a string.

@param string $value - The string to obfuscate

@return string
Obfuscates a string .