Re: ucwords() usage QUICKIE
| From: | Daniel Negron/KBE | Date: | Mon, 17 Jun 2002 13:32:26 +0000 |
| Subject: | Re: ucwords() usage QUICKIE | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102507@lists.php.net to get a copy of this message | ||
You WROTE :
You pass a string to the function and it returns a string with each word
starting with an uppercase.
$string = "hello world";
$new_string = ucwords($string);
echo $new_string; // Displays 'Hello World'
Reply:
So does that mean that I can not take all of the selected strings and
capitolize each word like so,
ucwords($sql)
or do I have to specify each string to be converted prior to being inserted
into the database
$newstr = ucwords($oldstr)
??
Thank You
<><><><><><><><><><><><><><><><>
Daniel Negrón
Lotus Notes Administrator / Developer
KB Electronics, Inc.
954.346.4900x122
http://www.kbelectronics.com
<><><><><><><><><><><><><><><><>