Ask a Question related to PHP Development, Design and Development.
-
James Johnson #1
String formatting function - First char Upper, rest lower
Hi,
Newbie question.
Does anyone know of a function or script that will capitalize the first char
and lowercase the remaining chars of each word in a string?
Thanks,
James
James Johnson Guest
-
No Pcase? how do I capitolize the first letter of aword, with the rest of the word lower case?
I know I can go one way or another, Ucase(var) all upppercase, or Lcase(var) all lowercase, but how can I get a Propercase? I've seen this in VB,... -
[newbie] upper to lower first letter of a word
Recently, i get a vintage list (more than 500 items) with poor typo, for example, i've : Côte de beaune-villages instead of : Côte de... -
Regexp help - upper to lower ONLY matching this pattern
Hi, I have a bunch of variables that I need changed. Basicly, anywhere i see something like this: $test{'HI_THERE'} I need tranlated to this:... -
OCI_ASSOC returns key with upper case string
Hello, First let me say that I am not sure if this is PHP problem or Oracle. I have a class that contains API for using postgresql, mysql, or... -
Function to evaluate whether a string is all UPPER
I'm trying to clean up strings in a web form before I plug the fields into a database. Lots of folks like to leave caps lock key on and yell their... -
Thomas Hebinck #2
Re: String formatting function - First char Upper, rest lower
Hi,
char>Does anyone know of a function or script that will capitalize the firstfrom the documentation:>and lowercase the remaining chars of each word in a string?
$bar = ucwords(strtolower($bar));
[url]http://de.php.net/manual/en/function.ucwords.php[/url]
Bye,
Thomas.
Thomas Hebinck Guest



Reply With Quote

