Answers for "capitalize first letter in string 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
1

php uppercase first letter

ucfirst($myword);
Posted by: Guest on November-05-2020

Code answers related to "capitalize first letter in string in php"

Browse Popular Code Answers by Language