Answers for "php random filename generator"

PHP
0

php random filename generator

function random_string($length) {
    $key = '';
    $keys = array_merge(range(0, 9), range('a', 'z'));

    for ($i = 0; $i < $length; $i++) {
        $key .= $keys[array_rand($keys)];
    }

    return $key;
}
//
echo random_string(50);
Posted by: Guest on September-06-2021

Browse Popular Code Answers by Language