PHP code example of jakiboy / encoder
1. Go to this page and download the library: Download jakiboy/encoder 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/ */
jakiboy / encoder example snippets
use Encoding\Encoder;
$string = 'Monétius nôs tumore înusità to quàdam et novo ut rebèllis';
echo (new Encoder())->sanitize($string);
use Encoding\Encoder;
$string = 'Монётиусę ėįšнôс тумореųūž îнуситàто qуодам ет ново ут ребэллис';
echo (new Encoder(true, 'TRANSLIT'))->sanitize($string);
use Encoding\Encoder;
$string = 'Монётиусę ėįšнôс тумореųūž îнуситàто qуодам ет ново ут ребэллис';
echo (new Encoder(true, 'IGNORE'))->sanitize($string);