Answers for "php text string to be capitalized"

PHP
2

php change sting to caps

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

echo $uppercase;
Posted by: Guest on June-26-2020
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

Code answers related to "php text string to be capitalized"

Browse Popular Code Answers by Language