PHP code example of epigra / trstringhelper
1. Go to this page and download the library: Download epigra/trstringhelper 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/ */
epigra / trstringhelper example snippets
use Epigra\TRStringHelper;
$w = new TRStringHelper("dEneMe. çĞıŞöİÜ");
echo $w->toLower()->result(); // deneme. çğışöiü
$x = (new TRStringHelper())->withString("dEneMe. çĞıŞöİÜ")->toUpper()->result();
echo $x; // DENEME. ÇĞIŞÖİÜ
$y = (new TRStringHelper("dEneMe. çĞıŞöİÜ"))->ucFirst()->result();
echo $y; // Deneme. çğışöiü
$z = (new TRStringHelper())->withString("dEneMe. çĞıŞöİÜ")->ucWords()->result();
echo $z; // Deneme. Çğışöiü
$p = (new TRStringHelper())->withPangram()->toUpper()->result();
echo $p;
$rp = TRStringHelper::pangram();
echo $rp;