Answers for "string capatilize in php"

PHP
6

php change sting to caps

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

echo $uppercase;
Posted by: Guest on June-26-2020
1

capitlise 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 November-29-2021

Browse Popular Code Answers by Language