dizballanze

password gen

Mar 20th, 2012
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.14 KB | None | 0 0
  1. public function generate($length){
  2.     return substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'), 0, $length);
  3. }
Advertisement
Add Comment
Please, Sign In to add comment