PHP code example of muhamadrezaar / stringer
1. Go to this page and download the library: Download muhamadrezaar/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/ */
muhamadrezaar / stringer example snippets
sh
new RezaAr\Stringer\Stringer("php is awesome");
// or
$str = stringer("php is awesome");
$str->reverse()->display(); // return "emosewa si php"
$str->substring(0,1)->display(); // return "r"
sh
$string = stringer('laravel is php framework');
$string->custom(function($string){
// your own manipulation syntax
})
->display()