PHP code example of nabeghe / stringer

1. Go to this page and download the library: Download nabeghe/stringer 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/ */

    

nabeghe / stringer example snippets


use Nabeghe\Stringer\Str;

echo Str::random(32);
echo Str::random(32, '0123456789');

use Nabeghe\Stringer\UnicodeControls;

echo UnicodeControls::ISS; // Invisible

use Nabeghe\Stringer\Stringer;

$string = new Stringer('In programming, a string is a sequence of characters, and string manipulation processes these characters.');
echo $string->after('string ')->before(','); // `is a sequence of characters`