Answers for "how can i capitolize the first letter of a string in php"

PHP
7

first character uppercase php

ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
Posted by: Guest on August-21-2020
5

first letter capital of every word in php

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

$clientname = "ANKUR PRAJAPATI";
ucfirst(strtolower($clientname));//Ankur Prajapati
Posted by: Guest on December-02-2020

Code answers related to "how can i capitolize the first letter of a string in php"

Browse Popular Code Answers by Language