RE: [PHP] Capitalizing the first letter

From: Date: Thu, 15 Mar 2007 10:39:30 +0000
Subject: RE: [PHP] Capitalizing the first letter
Groups: php.general 
Request: Send a blank email to php-general+get-250648@lists.php.net to get a copy of this message
On 14 March 2007 08:25, Richard Lynch wrote: > On Tue, March 13, 2007 9:10 am, Todd Cary wrote: > > I would like to write a filter that takes the text "smith" or > > "SMith" and returns "Smith"; same for "ralph smith". > > No, you don't. :-) > > You *think* you want to write that function, but this is one of those > things that is *way* more complicated than it seems to the beginner. > > How about: > > O'Brian > McCormick > Rodham-Clinton > von Freeman > del Castillo > . > . > . Not to mention MacDonald and Macdonald...!! ;( ;) Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

« previous php.general (#250648) next »