Current Location: Home> Function Categories> strtoupper

strtoupper

Convert string to uppercase
Name:strtoupper
Category:String
Programming Language:php
One-line Description:Convert strings to capital letters.

Definition and usage

strtoupper() function converts the string to uppercase.

Note: This function is binary safe.

Related functions:

  • lcfirst() - Convert first character in a string to lowercase
  • strtolower() - Convert strings to lowercase
  • ucfirst() - Convert the first character in a string to uppercase
  • ucwords() - Convert the first character of each word in a string to uppercase

Example

Convert all characters to capitalization:

 <?php
echo strtoupper ( "Hello WORLD!" ) ;
?>

Try it yourself

grammar

 strtoupper ( string )
parameter describe
string Required. Specifies the string to be converted.
Similar Functions
Popular Articles