strtoupper()
Published Jul 12, 2023
Contribute to Docs
The strtoupper()
function converts all the characters in a string to uppercase.
Syntax
strtoupper(string_to_convert);
The string_to_convert
parameter is the string that will be converted to uppercase.
Example
The following code demonstrates the use of strtoupper()
to alter a string.
<?phpecho strtoupper("hello, world!");?>
The code results in the following:
HELLO, WORLD!
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.