PHP code example of jpuck / mbstring
1. Go to this page and download the library: Download jpuck/mbstring library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jpuck / mbstring example snippets
$original = '🔥 Foó, foó FOÓ 😁';
$casemap = new CaseMap($original);
$replaced = mb_eregi_replace('foó', 'bår', $original);
$restored = $casemap->transform($replaced);
echo "original: $original\n";
echo "replaced: $replaced\n";
echo "restored: $restored\n";