PHP code example of swuppio / randstring

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

    

swuppio / randstring example snippets


gen(int $length = 5, ?string $symbols = null): string

echo RandString::gen();

echo RandString::gen(10, 'abc123');