Friday, February 2, 2018

PHP RANDOM PASSWORD

PHP RANDOM PASSWORD
<?php
$length = 10;
$chars = array_merge(range(0,9), range('a','z'), range('A','Z'));
shuffle($chars);
$password = implode(array_slice($chars, 0, $length));
echo $password;
?>

Share:

0 comments:

Post a Comment

Popular Posts

Blog Archive