If you want to generate random numbers, it is possible by using PHP’s rand function. But if you want to generate random string, it is not possible by using rand function. Because rand function only returns numbers as integer between two values. *I coded a simple PHP function that works exactly same as rand function but the deference is it returns strings. You can use it in captcha function, random password generator or anywhere else.

Read more »