PHP code example of 10quality / php-string-juggler

1. Go to this page and download the library: Download 10quality/php-string-juggler 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/ */

    

10quality / php-string-juggler example snippets

 php
$string = new StringJuggler\Juggler('DONEC');`
echo strtolower($string);
// Echoes 'donec'
 php
$before = $string->getBefore(' id');
// $before now equals 'Donec'
 php
$after = $string->getAfter('porta ');
// $after now equals 'gravida at eget metus.'