RE: [PHP] Capitalize Function ??
| From: | Brian Dunworth | Date: | Tue, 24 Jul 2001 14:00:36 +0000 |
| Subject: | RE: [PHP] Capitalize Function ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59346@lists.php.net to get a copy of this message | ||
On Tuesday, July 24, 2001 2:32 AM, Alexander Skwar said:
> 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.
..or, at least not capitalized in the simple fashion of ucwords().
Leonardo da Vinci
Otto von Bismarck
> Hmm, how about English?
..or Scottish, or Irish?
Elle MacPherson
Angus MacGyver
Ronald McDonald
> Sometimes there are suffixes like "the 3rd", no? Would it be right
> to capitalize this?
Well, usually that'd be "III". Of course, "John Smith, Iii" would be
wrong...
- Brian
-----------------------------------
Brian S. Dunworth
Sr. Software Development Engineer
Oracle Database Administrator
The Printing House, Ltd.
(850) 875-1500 x225
-----------------------------------