php-general | 2001072
Date: 07/24/01
- Next message: David Robley: "Re: [PHP] Need some help with this idea!"
- Previous message: Chris Cocuzzo: "[PHP] Need some help with this idea!"
- Maybe in reply to: PHP Junkie: "[PHP] Capitalize Function ??"
- Next in thread: Ryan Fischer: "Re: [PHP] Capitalize Function ??"
- Reply: Ryan Fischer: "Re: [PHP] Capitalize Function ??"
- Reply: Brian Dunworth: "RE: [PHP] Capitalize Function ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
So sprach »PHP Junkie« am 2001-07-23 um 21:39:07 -0400 :
> I'm taking in first name and last name data into a MySQL db through a
> form. Users sometimes don't capitalize their first and last names when
> entering the data. Is there a function to clean this up for
> consistency? If so, what is the name of the function that performs
> this?
Yep, ucwords.
But this is not a good idea! There are Names (like "Hans vom Bach" or
somesuch) which do NOT have to be captialized. Actually, capitalizing
the "vom" would be wrong. Although this was just a German example, I'd
bet there are names in French, Dutch, Spanish, Italian as well which
should not be capitalized. Hmm, how about English? Sometimes there are
suffixes like "the 3rd", no? Would it be right to capitalize this?
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 7 hours 12 minutes-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: David Robley: "Re: [PHP] Need some help with this idea!"
- Previous message: Chris Cocuzzo: "[PHP] Need some help with this idea!"
- Maybe in reply to: PHP Junkie: "[PHP] Capitalize Function ??"
- Next in thread: Ryan Fischer: "Re: [PHP] Capitalize Function ??"
- Reply: Ryan Fischer: "Re: [PHP] Capitalize Function ??"
- Reply: Brian Dunworth: "RE: [PHP] Capitalize Function ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

