Thread: Upper case?
View Single Post
Old 07-01-2007, 5:11 PM   #4
Andy Hassall
 
Andy Hassall's Avatar
 
Posts: n/a
My Photos: ()

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Upper case?

On Sun, 17 Aug 2003 11:45:28 -0700, Jeffrey Ellis <support@groundlevel.net>
wrote:

>Sorry, a bit of an addendum, and I made a mistake.
>
>I actually looked at the category field in the database, and the data
>already is in the case I need...but the echo is displaying it in lower
>case...for example:
>
>"Downloading" is echoed by that line as "downloading".
>
>This isn't supposed to happen is it?


No. In that case, find both (a) the code that's echoing it, and (b) the SQL
query itself. One of them is modifying the value.

>Also, I really meant Proper or Title case, not Upper...sorry. I did a search
>for those terms at php.net and came up with no results for a function which
>did that. Is there one?


http://uk.php.net/manual/en/function.ucwords.php

If you're stuck for a function and can't find it in the search engine (because
you're not quite sure of keywords that would match) try browsing through the
sections. In this case you want to modify a string, so look through the String
functions section.

--
Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
  Reply With Quote