PHP code example of codwelt / helpersman
1. Go to this page and download the library: Download codwelt/helpersman 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/ */
codwelt / helpersman example snippets
use Codwelt\HelpersMan\HelpersMan;
$text = "este es un un texto de prueba";
$countWords = HelpersMan::count_words_repeated($text);
var_dump($countWords);
array(6) {
["un"]=>
int(2)
["este"]=>
int(1)
["es"]=>
int(1)
["texto"]=>
int(1)
["de"]=>
int(1)
["prueba"]=>
int(1)
}
use Codwelt\HelpersMan\HelpersMan;
$ramdom = HelpersMan::random_string(10);