PHP – Generate a random password based on length

Here’s a quick function to generate a password. All you have to do is call it passing the length of your required password as an argument.

 

Leave a Reply

Your email address will not be published. Required fields are marked *