AbcAeffchen\SepaUtilities\SepaUtilities::replaceSpecialChars
Replaces all special chars like á, ä, â, à, å, ã, æ, Ç, Ø, Š, ", ’ and & by a latin character.
All special characters that cannot be replaced by a latin char (such like quotes) will be removed as long as they cannot be converted. See http://www.europeanpaymentscouncil.eu/index.cfm/knowledge-bank/epc-documents/sepa-requirements-for-an-extended-character-set-unicode-subset-best-practices/ for more information about converting characters.
Signature
public function replaceSpecialChars(string
$str,
[integer
$flags = 0] )
Parameters
$str
— string$flags
— integer- Use the SepaUtilities::FLAG_ALT_REPLACEMENT_* and SepaUtilities::FLAG_NO_REPLACEMENT_
constants. FLAG_ALT_REPLACEMENT_* will ignore the best practice replacement
and use a more common one. You can use more than one flag by using
the | (bitwise or) operator. FLAG_NO_REPLACEMENT_* tells the function
not to replace the character group.
Returns
- string