Generate Random password with length and strength

We generally need a random password string for different purpose. Here i am sharing a simple php function to generate random password with user specific length. User can pass length...