Re: Newman Isn't trying very hard
| From: | Jean-Christian Imbeault | Date: | Sun, 08 Jun 2003 07:53:50 +0000 |
| Subject: | Re: Newman Isn't trying very hard | ||
| References: | 1 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-150652@lists.php.net to get a copy of this message | ||
Philip J. Newman wrote:
Is there a way of changing only the 1st letter of a string to caps and the rest to lower?
eg: foo bar to
Foo Bar
Newman, search the PHP documentation before posting will you?
What you want is the function called ucwords()
http://jp.php.net/manual/en/function.ucwords.php
Jc