strtoupper()


string strtoupper ( string $str )

Description

strtoupper() converts all alphabetic characters of a string to uppercase.

※ available F/W version : all

Parameters

Return values

Returns the uppercased string, PHP error on error

Example

<?php
$str_org = "Hello PHPoC!";
$str_upper = strtoupper($str_org);
printf("str_org = %s, str_upper = %s\r\n", $str_org, $str_upper);  
// OUTPUT: str_org = Hello PHPoC!, str_upper = HELLO PHPOC!
?>

See also

strtolower()

Remarks

This function is identical to the PHP group’s strtoupper() function.