PHP strtoupper

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PHP : strtoupper() function

Description

The strtoupper() function is used to convert all alphabetic characters of a string to uppercase.

Version

(PHP 4 and above)

Syntax

strtoupper(string1)

Parameter

Name

Description

Required /
Optional

Type

string1

The input string.

Required

String

Return value

The uppercased string.

Value Type : String.

Pictorial Presentation

string_strtoupper

Example of php strtoupper() function

  1. $string1="Welcome to w3resource.com";  

  2. echo strtoupper($string1);   

  3. ?>   

Output :

WELCOME TO W3RESOURCE.COM