php strtoupper() function


  Translation results:

英[ˈʌpə(r)] US[ˈʌpɚ]

adj. Above; higher status; mainland; surface layer

n. upper, boot upper; excitement agent; exciting experience

plural: uppers

php strtoupper() functionsyntax

Function:Convert all characters to uppercase

Syntax: strtoupper(string)

Parameters:

ParameterDescription
stringRequired, specified to be converted String

Description: The strtoupper() function converts the string to uppercase. This function is binary safe.

php strtoupper() functionexample

<?php
$i = "hello world";
$j = strtoupper($i);
echo $j;
?>

Run instance»

Click the "Run instance" button to view the online instance

Output:

HELLO WORLD
<?php
$i = "I'm study in php.cn";
$j = strtoupper($i);
echo $j;
?>

Run Instance»

Click the "Run Instance" button to view the online instance

Output:

I'M STUDY IN PHP.CN

Home

Videos

Q&A