Convert all characters to uppercase:
<?phpecho strtoupper("Hello WORLD!");?>The strtoupper() function converts a string to uppercase.
Note: This function is binary safe.
Related functions:
strtolower() - Convert a string to lowercase
lcfirst() - Converts the first character in a string to lowercase
ucfirst() - Converts the first character in a string to uppercase
ucwords() - Converts the first character of each word in a string to uppercase
strtoupper( string )
parameter | describe |
---|---|
string | Required. Specifies the string to be converted. |
Return value: | Returns a string converted to uppercase. |
---|---|
PHP version: | 4+ |