php uppercase first letter
snippet in php

ucfirst() php

user2237


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

$bar = 'HELLO WORLD!';
$bar = ucfirst($bar);             // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
// string manipulation function 

string first letter uppercase php

user8852


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

$bar = 'HELLO WORLD!';
$bar = ucfirst($bar);             // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>

first character uppercase php

user5843

ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world

php uppercase first letter

user766

ucfirst($myword);

ucfirst

user7718

<?php
/* Convert the first character of "hello" to uppercase:  */
echo ucfirst("hello samy!");

//output : Hello samy!
?>

php capitalize first letter

user6661

ucfirst("hello world!");