strtoupper
Convert string to uppercase
strtoupper()
function converts the string to uppercase.
Note: This function is binary safe.
lcfirst()
- Convert first character in a string to lowercasestrtolower()
- Convert strings to lowercaseucfirst()
- Convert the first character in a string to uppercaseucwords()
- Convert the first character of each word in a string to uppercaseConvert all characters to capitalization:
<?php echo strtoupper ( "Hello WORLD!" ) ; ?>
Try it yourself
strtoupper ( string )
parameter | describe |
---|---|
string | Required. Specifies the string to be converted. |