name first letter get capitalized in php code example
Example 1: php capitalize first letter
ucfirst("hello world!");
Example 2: first letter capital of every word in php
$clientname = "ankur prajapati";
ucwords($clientname);//Ankur Prajapati
ucfirst("hello world!");
$clientname = "ankur prajapati";
ucwords($clientname);//Ankur Prajapati