PHP code example of paquettg / string-encode
1. Go to this page and download the library: Download paquettg/string-encode 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/ */
paquettg / string-encode example snippets
use StringEncoder\Encoder;
$str = "Calendrier de l'avent façon Necta!";
$encoder = new Encoder();
$newstr = $encoder->convert()->fromString($str)->toString();
echo $newstr; // "Calendrier de l'avent façon Necta!" in UTF-8 encoding (default)