PHP strtoupper() Function: Convert String to Uppercase
The strtoupper function is used to convert all letters in a string to uppercase. Its syntax format is as follows:
strtoupper(string)
In this case, the parameter string is the string to be converted. The function will return a new string where all letters are converted to uppercase. For example:
$str = "hello world";
echo strtoupper($str); // 输出 HELLO WORLD
Note that this function does not modify the original string and instead returns a new string.