PHP » Strings » strtoupper()

Syntax:
string strtoupper(string s)
s
The string.

Converts a string to upper case.

strtoupper() returns a new string where the characters of the input string are converted to upper case.

Examples

Code:
<?php

print strtoupper("This Is An Example Line");

?>
Output:
THIS IS AN EXAMPLE LINE
Explanation:

strtoupper() is used to convert a string to all upper case.

See Also: