So your function takes into account things like Mc, Mac, St, Van der, Von, etc? There's a lot of possible combinations out there to try and code for. But if thats your choice, go for it.
| SitePoint Sponsor |
So your function takes into account things like Mc, Mac, St, Van der, Von, etc? There's a lot of possible combinations out there to try and code for. But if thats your choice, go for it.





I didn't write the function, but it's served me well up till now![]()
Thanks for coming back to me Kalon.
@AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.
Guys, I don't know if this discussion was because of my wrong solution. And I have to apologize if my solution is directing OP to somewhere wrong way.
But please note what OP has said that he is trying to match a code which I thought for some kind of verifications/confirmation (like sign up confirmation or so) because his example codes seem random codes. For that particular case, I normally do in that way like storing codes all in uppercase and check user entered codes are all in upper case or not in PHP itself. But I don't check against database for case check. I have never stored other user data like names, surnames, etc. in any lower/upper case and neither I suggest anyone to do that. I just store how they enter.
Hope it is clear why/how I suggested the way.
Bookmarks