php uppercase all words code example
Example 1: php string to uppwe
$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);
echo $uppercase;
Example 2: php uppercase
$string = "String with Mixed use of Uppercase and Lowercase";
$string = strtoupper($string);
Example 3: php ucfirst all words
$foo = 'hello world!';
$foo = ucwords($foo);
$bar = 'HELLO WORLD!';
$bar = ucwords($bar);
$bar = ucwords(strtolower($bar));
$foo = 'hello|world!';
$bar = ucwords($foo);
$baz = ucwords($foo, "|");
Example 4: php uppercase each word
$upperCaseSentance=ucwords("i do not feel good");
Example 5: strtoupper php
string strtoupper ( $string )
Example 6: first letter capital of every word in php
$clientname = "ankur prajapati";
ucwords($clientname);