strtoupper in php code example

Example 1: php string to uppwe

$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);

echo $uppercase;
// THIS IS LOWER CASE

Example 2: strtoupper in php

<?php
/* There is a function in php wich convert all string to uppercase */

  echo strtoupper("Hello samy! how are u ?"); 

// output :   HELLO SAMY! HOW ARE U ?
?>

Example 3: php change sting to caps

$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);

echo $uppercase;

Example 4: strtoupper php

string strtoupper ( $string )

Example 5: strtoupper

<?php
echo strtoupper("Hello WORLD!");
?>

Example 6: strtoupper in php

$str = "upper";
//php string to uppercase
echo strtoupper($str); // => UPPER

Tags:

Misc Example