Showing posts with label php string. Show all posts
Showing posts with label php string. Show all posts

Saturday, 21 June 2014

Generate Password in alphanumeric using PHP


$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$password = substr( str_shuffle( $chars ), 0, $length );