PHP strtoupper() Function

PHP strtoupper() Function makes all characters of string to uppercase.

Syntax :

strtoupper(string);

Parameters ,

string : Required. It is required to make all characters of string to uppercase.

It returns the uppercased string.

Similar function of strtoupper() :

    ucwords(): It makes the first character of each word to uppercase in string..
    strtolower() : It converts a whole string into lowercase.
    lcfirst() : It converts only the first character of a string into lowercase.
    ucfirst() : It converts only the first character of a string into uppercase.

Let's see below example to understand php strtoupper() Function in details.

Example :

<?php
$str= 'learn php strtoupper function tutorial at aryatechno!';
$result1= strtoupper($str);
echo "<br> strtoupper function : ".$result1;
?>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

91882