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
You wrote:
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
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
So sprach »Ryan Fischer« am 2001-07-24 um 07:35:37 -0400 :
Usually, the 3rd is written as John Doe, III, AFAIK, so that's not
really an issue.
Okay, III isn't an issue then. What about people with Dr. titles? Like
'Dr. med John Doe'. There the 'med' shouldn't be capitalized. And I'm
sure,
You wrote:
So sprach »Ryan Fischer« am 2001-07-24 um 07:35:37 -0400 :
Usually, the 3rd is written as John Doe, III, AFAIK, so that's
not
really an issue.
Okay, III isn't an issue then. What about people with Dr. titles?
Like
'Dr. med John Doe'. There the 'med' shouldn't be capitalized.
So sprach »Ryan Fischer« am 2001-07-24 um 13:18:33 -0400 :
Never heard of that one before. Usually, a medical doctor adds an
M.D. at the end of his name indicating so.
Hmm, this maybe the case in the states. Dr. med. is the German title.
Alexander Skwar
--
How to quote:
True. or what about the Irish.. The Mc***'s or the Mac*'s !!
Hmmm? This will be a challenge for sure!!
Alexander Skwar [EMAIL PROTECTED] wrote:
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
: Opec Kemp [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 9:53 PM
To: PHP Junkie
Cc: PHP List
Subject: RE: [PHP] Capitalize Function ??
The function that you want is called: ucfirst()
http://www.php.net/manual/en/function.ucfirst.php
To make sure that string are consistant you might want
8 matches
Mail list logo