first character uppercase php
snippet in php

ucfirst() php

user3889


<?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 

first character uppercase php

user6100

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