PHP code example of codigosecafe / str-utf8
1. Go to this page and download the library: Download codigosecafe/str-utf8 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/ */
codigosecafe / str-utf8 example snippets
namespace App\Modue\MeuModulo;
use CodigoseCafe\StrUTF8\Str;
class MinhaClasse
{
public function print($string = null)
{
return Str::fixUTF8( $string );
}
}
echo (new MinhaClasse())->print('Apresentação, cotação, documentação, funções e ação');
// SAIDA: Apresentação, cotação, documentação, funções e ação