Re: ucfirst and ucword, php&MySQL
| From: | Michael Howitz | Date: | Mon, 31 Jul 2000 13:07:34 +0000 |
| Subject: | Re: ucfirst and ucword, php&MySQL | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1640@lists.php.net to get a copy of this message | ||
hi Joanna,
try:
printf(ucword($myrow["name"] . " all"));
bye,
mac
Joanna wrote:
>
> hi everyone,
>
> I'm trying to use ucfirst and ucword with string, but I'm running into
> a problem, if the statment looks like this it works.
>
> printf(ucword("hi all"));
>
> but if I try to pull stuff out of the data base and capitalize it it does
> not, is there another way to do this?
>
> printf(ucword("%s all", $myrow["name"]));
>
> I know pulling the stuff out of the data base works because
>
> printf("%s all", $myrow["name"])
> works fine.
>
> Can any one help
>