string php ke uppwe
$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);
echo $uppercase;
// THIS IS LOWER CASE
Whale
$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);
echo $uppercase;
// THIS IS LOWER CASE
//string to all uppercase
$string = "String with Mixed use of Uppercase and Lowercase";
//php string to uppercase
$string = strtoupper($string);
// = "STRING WITH MIXED USE OF UPPERCASE AND LOWERCASE"
<?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 ?
?>
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
echo $str; // muestra: MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
?>
ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);
echo $uppercase;