Caps or No caps

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-11-2004
Frank Keessen
 
Posts: n/a
Default Caps or No caps

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

Reply With Quote
  #2 (permalink)  
Old 01-11-2004
Richard Davey
 
Posts: n/a
Default Re: [PHP] Caps or No caps

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:48 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0