Answers for "php function to captilzae first letter"

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
0

phpcapital first

<?php
echo ucfirst("hello world!");
?>
Posted by: Guest on August-16-2021

Code answers related to "php function to captilzae first letter"

Browse Popular Code Answers by Language