What PHP function can be used to convert all letters in a variable to uppercase?

To convert all letters in a variable to uppercase in PHP, you can use the `strtoupper()` function. This function takes a string as input and returns the string with all letters converted to uppercase. This is useful when you want to standardize the case of letters in a string for comparison or display purposes.

// Example code to convert all letters in a variable to uppercase
$originalString = "Hello, World!";
$uppercaseString = strtoupper($originalString);
echo $uppercaseString; // Output: HELLO, WORLD!