PHP: create random password
$str = "0123456789abcdefghijklmnopqrstuvwxyz"; $n = 8; $len = strlen($str)-1; for($i=0 ; $i<$n; $i++){ $s .= $str[rand(0,$len)]; }
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.
Leave a Reply
You must be logged in to post a comment.
Twitter
Email
RSS