php capitalize first letter of each sentence code example
Example 1: first character uppercase php
ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
Example 2: php capitalize first letter
ucfirst("hello world!");
Example 3: first letter capital of every word in php
$clientname = "ankur prajapati";
ucwords($clientname);//Ankur Prajapati