RE: [PHP] Capitalize Function ??

From: Date: Tue, 24 Jul 2001 01:52:41 +0000
Subject: RE: [PHP] Capitalize Function ??
Groups: php.general 
Request: Send a blank email to php-general+get-59288@lists.php.net to get a copy of this message
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 to convert all characters in the string to Lower case first then call this function. This will ensure that stuff like "JoHn sMITH" gets converted to "John Smith" consistantly. > -----Original Message----- > From: PHP Junkie [mailto:php091565@netscape.net] > Sent: Tuesday, July 24, 2001 11:39 AM > To: php-general@lists.php.net > Subject: [PHP] Capitalize Function ?? > > > I know this one will be an easy one ... > > 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? > > Thanks in advance,

« previous php.general (#59288) next »