$string = "hello world"; $uppercase = strtoupper($string); echo $uppercase; // Output: HELLO WORLD
$name = "John Smith"; $uppercase_first_letter = ucfirst(strtolower($name)); echo $uppercase_first_letter; // Output: John smithThis example demonstrates how to use the ucfirst and strtolower functions together to convert the first letter of `$name` to uppercase while converting the rest of the letters to lowercase. The PHP G toUpper function is built-in and does not require any external package libraries.