Write a PHP script that generates a 6 digit password from the given string without using random function?
function rand_string( $length ) {
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
return substr(str_shuffle($chars),0,$length);
}
echo rand_string(8);
Also in PHP:
- exceptions in php
- How to get the current time in PHP
- HTTP 500 ERROR WITHOUT MESSAGE PHP
- check if key exists in php array
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/Users/Public/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
- debian install apache php
- cache::remember with json
- date increase 1 day
- add day to time php
- base64 dencode GET variables in PHP
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108872 bytes) in phar://C: /ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 84
- client_ip() function php
- find char in string php
- Route pattern cannot reference variable name more than once. laravel
- check key exists in array in php
- database seeding
- check if word belongs in string
- ErrorException without try catch
- Date - hours php
- Class 'App\Http\Controllers\Auth' not found
- add header image to woocomerce shop page
- datetime 24 hour format php
- C:\MyScans in php server run file
- copy file path in phpstorm