PHP code example of infureal / php-stringable

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

    

infureal / php-stringable example snippets



$str = \Infureal\Str::of('HELLO')
    ->lower();

echo $str; // hello
echo $str->upperFirst(); // Hello