PHP code example of daycode / charable

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

    

daycode / charable example snippets


'providers' => [
    /*
    * Package Service Providers...
    */
    DayCod\Charable\CharableServiceProvider::class,
],

'aliases' => [
    /*
    * Class Aliases
    */
    'Charable'=> DayCod\Charable\Charable::class,
],


Charable::getOnlyAlphabet(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: abcdef



Charable::getOnlyNumberOrDigit(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: 1230



Charable::getOnlyLowerAlphabet(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: abcdef



Charable::getOnlyUpperAlphabet(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: ""



Charable::getOnlyAlphabetNumeric(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: 123abcdef0

bash
composer dump-autoload && php artisan optimize:clear