first letter capital of every word in php
snippet in php

php ucfirst all words

user8444

$foo = 'hello world!';
$foo = ucwords($foo);             // Hello World!

$bar = 'HELLO WORLD!';
$bar = ucwords($bar);             // HELLO WORLD!
$bar = ucwords(strtolower($bar)); // Hello World!

//With custom delimiter
$foo = 'hello|world!';
$bar = ucwords($foo);             // Hello|world!

$baz = ucwords($foo, "|"); 

string first letter uppercase php

user4244


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

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

php uppercase each word

user1982

$upperCaseSentance=ucwords("i do not feel good");//I Do Not Feel Good

php capitalize first letter

user304

ucfirst("hello world!");

first letter capital of every word in php

user9253

$clientname = "ankur prajapati";
ucwords($clientname);//Ankur Prajapati