Answers for "how to make all capital letters in php"

PHP
14

string first letter uppercase php

<?php
$foo = 'hello world!';
$foo = ucfirst($foo);             // Hello world!

$bar = 'HELLO WORLD!';
$bar = ucfirst($bar);             // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
Posted by: Guest on July-03-2020
2

php capital string

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

Code answers related to "how to make all capital letters in php"

Browse Popular Code Answers by Language