phpstuff Posted August 12, 2014 Share Posted August 12, 2014 On the top right of the page it has this tip. How exactly would the code look to accomplish this? Lets say I wanted to insert 2 upper case letters in random positions within the generated password. Thank you for your help. Link to comment Share on other sites More sharing options...
Larry Posted August 17, 2014 Share Posted August 17, 2014 Have you figured this out or do you still need help with it? Link to comment Share on other sites More sharing options...
phpstuff Posted August 17, 2014 Author Share Posted August 17, 2014 Haven't figured it out yet... Just kept on moving along through the book. Thank you for checking. If I should reference somewhere in this book or your other 2 (PHP, or PHP & MySQL) let me know and I'll go reference those pages. Link to comment Share on other sites More sharing options...
Larry Posted September 22, 2014 Share Posted September 22, 2014 So sorry for the delay! You can get a random capital letter using this code: chr(97 + mt_rand(0, 25)); That creates a random integer between 97 and 122 and returns the ASCII character associated with that number. Link to comment Share on other sites More sharing options...
Recommended Posts