public function filter($value)
        {
            // transliteration
            $value = strtr($value, $this->transliteration);

            // change to lowercase
            if($this->transformCase) {
                $value = mb_convert_case($value, MB_CASE_LOWER, 'utf8');
            }

            // replace punctuation
            if($this->transformPunctuation) {
                $value = strtr($value, $this->punctuation);
            }

            return $value;
        }
public function filter($value)
        {
            // transliteration
            $value = strtr($value, $this->transliteration);

            // change to lowercase
            if($this->transformCase) {
                $value = mb_convert_case($value, MB_CASE_LOWER, 'utf8');
            }

            // replace punctuation
            if($this->transformPunctuation) {
                $value = strtr($value, $this->punctuation);
            }

            return $value;
        }
public function filter ( $ value ) { // transliteration $ value = strtr ( $ value , $ this -> transliteration ) ; // change to lowercase if ( $ this -> transformCase ) { $ value = mb_convert_case ( $ value , MB_CASE_LOWER , 'utf8' ) ; } // replace punctuation if ( $ this -> transformPunctuation ) { $ value = strtr ( $ value , $ this -> punctuation ) ; } return $ value ; }
Normalise the input string

@param string $value String to be normalised

@return string Normalised string
Normalise the input string