Re: Caps or No caps

From: Date: Sun, 11 Jan 2004 14:53:43 +0000
Subject: Re: Caps or No caps
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174245@lists.php.net to get a copy of this message
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" <fkeessen@planet.nl> wrote in message news:00cd01c3d852$74e21f80$70253591@PC01FJ... > 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 >

« previous php.general (#174245) next »