PHP password generator + filter

Hi All

I have a simple random password generator which works great.

I have one problem which is that I do not check the password generated for bad words. I could do a str_ireplace of the password generated although the list of bad words to exclude would be large and I will for sure miss at least one out. I also need to check against not only alphabet characters but other formats that can be seen as a bad word for example if the word sitepoint was a bad word then it could be interpreted as s1tp0int, sit#p*int.

Is there a quick way to overcome the problem?

Many thanks

Is there a quick way to overcome the problem?

Nope.