>From the docs: $foo = 'hello world!'; $foo = ucwords($foo); // Hello World!
$bar = 'HELLO WORLD!'; $bar = ucwords($bar); // HELLO WORLD! $bar = ucwords(strtolower($bar)); // Hello World! "Frank Keessen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php