========================= Rule ``mb_str_functions`` ========================= Replace non multibyte-safe functions with corresponding mb function. Warning ------- Using this rule is risky ~~~~~~~~~~~~~~~~~~~~~~~~ Risky when any of the functions are overridden, or when relying on the string byte size rather than its length in characters. Examples -------- Example #1 ~~~~~~~~~~ .. code-block:: diff --- Original +++ New `_ - Test class: `PhpCsFixer\\Tests\\Fixer\\Alias\\MbStrFunctionsFixerTest <./../../../tests/Fixer/Alias/MbStrFunctionsFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.