Remove accents from string
Definition at line 11 of file RemoveAccents.php.
◆ __construct()
__construct |
( |
|
$german = false | ) |
|
◆ filter()
- Parameters
-
- Returns
- string @SuppressWarnings(PHPMD.ExcessiveMethodLength)
Implements Zend_Filter_Interface.
Definition at line 31 of file RemoveAccents.php.
35 if (empty($replacements[$this->german])) {
162 $germanReplacements = [
170 $substitutions = $germanReplacements + $substitutions;
181 $convertedString = @iconv(
'UTF-8',
'ISO-8859-1//IGNORE', $string);
182 if ($convertedString) {
183 $string = $convertedString;
186 $string = strtr($string, $replacements[$this->german]);
◆ $german
The documentation for this class was generated from the following file: