PDA

View Full Version : Capitalize First Letter for Create Account Fields



michael_s
09-05-2007, 09:05 PM
So simple yet so complicated!

Converting last names is not such an easy task, what about all those MacDonalds that become Macdonalds or the Hyphen-Hyphens that become the Hyphen-hyphens or the van der Capitals that become the Van Der Capitals...

Have a look at this on php.net:
http://www.php.net/manual/en/function.ucwords.php
then scroll down a bit. The contributions from the Italians are pretty comprehensive but still in the end none of them work 100%...

Mind you all is well if you are a MacDonald but there again what about the Macallisters who then become the MacAllisters!



More... (http://www.oscommerce.com/community/contributions,5308)