PHP code example of ziyodulloxon / string-helper

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

    

ziyodulloxon / string-helper example snippets


$src = "It is a long established fact that a reader will be distracted by the readable content of a page when" .
            "looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution" .
            "of letters, as opposed to using 'Content here, content here', making it look like readable English.";

$string = \Ziyodulloxon\StringHelper\Facades\Str::capitalize($src);
$words = $string->splitToSentences()->capitalizeAll()->get();

echo $words;