substr_replace for unicode characters.
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require threshold/mb-substr-replace
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
$string = mb_substr_replace($string, $replacement, $start, $length);