X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP strtoupper() Function

PHP String Reference PHP String Reference

Example

Convert all characters to uppercase:

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

Run example »

Definition and Usage

The strtoupper() function converts a string to uppercase.

Note: This function is binary-safe.

Related functions:

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

Syntax

strtoupper(string)

Parameter Description
string Required. Specifies the string to convert

Technical Details

Return Value: Returns the the uppercased string
PHP Version: 4+


PHP String Reference PHP String Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook