//string to all uppercase
$string = "String with Mixed use of Uppercase and Lowercase";
//php string to uppercase
$string = strtoupper($string);
// = "STRING WITH MIXED USE OF UPPERCASE AND LOWERCASE"
<?php
$foo = 'bonjour tout le monde!';
$foo = ucfirst($foo); // Bonjour tout le monde!
$bar = 'BONJOUR TOUT LE MONDE!';
$bar = ucfirst($bar); // BONJOUR TOUT LE MONDE!
$bar = ucfirst(strtolower($bar)); // Bonjour tout le monde!
?>
<?php
$str_first_cap = "hang on, this is first letter capital example!";
echo ucwords($str_first_cap);
?>
ucfirst("hello world!");