ucfirst() php
<?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
<?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
ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
php capitalize first letter
ucfirst("hello world!");
ucfirst
<?php
/* Convert the first character of "hello" to uppercase: */
echo ucfirst("hello samy!");
//output : Hello samy!
?>
php uppercase first letter
ucfirst($myword);