One-liner password generation in PHP
How would you improve this one-liner?
$password = substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$'),0 , 10);
$password = substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$'),0 , 10);
4 comments
[ 3.5 ms ] story [ 19.7 ms ] threadThese can be confusing to people, depending on fonts.