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.

Share: