Answers for "php uppercase function"

PHP
11

php uppercase

//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"
Posted by: Guest on September-01-2020
2

upppercase php

$str = "upper";
//php string to uppercase
echo strtoupper($str); // => UPPER
Posted by: Guest on February-19-2021
1

Capitalize in php

<?php
$foo = 'bonjour tout le monde!';
$foo = ucfirst($foo);             // Bonjour tout le monde!

$bar = 'BONJOUR TOUT LE MONDE!';
$bar = ucfirst($bar);             // BONJOUR TOUT LE MONDE!
$bar = ucfirst(strtolower($bar)); // Bonjour tout le monde!
?>
Posted by: Guest on June-12-2021
2

strtoupper

<?php
echo strtoupper("Hello WORLD!");
?>
Posted by: Guest on June-26-2020
2

php string to uppercase

<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
echo $str; // show: MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
Posted by: Guest on February-09-2021

Browse Popular Code Answers by Language