This is a discussion on Caps or No caps within the PHP General forums, part of the PHP Programming Forums category; Hi All, Can you please help me with the following; Is there a function in PHP that can do the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi All,
Can you please help me with the following; Is there a function in PHP that can do the following; When you have output in the database like this: "HeLlo WorlD" then you convert it to all caps "HELLO WORLD" or just the first character that is only caps "Hello world". I googled and looked at the php.net site but i'm not seeing it. Regards, Frank |
|
|||
|
Hello Frank,
Sunday, January 11, 2004, 2:51:55 PM, you wrote: FK> When you have output in the database like this: "HeLlo WorlD" FK> then you convert it to all caps "HELLO WORLD" or just the first FK> character that is only caps "Hello world". All uppercase = strtoupper() First letters capped = ucfirst() and ucwords() Download the PHP manual and keep a local copy of it, then search it for "uppercase" and you'll find what you need. -- Best regards, Richard mailto:rich@launchcode.co.uk |
![]() |
| Thread Tools | |
| Display Modes | |
|
|