Tags
Asked 30+ days ago
29 Nov 2016
Views 148
jaggy

jaggy posted

make first characater capital of every word in PHP


$jbtitle='quality analyst ';


how can i make only first character capital of word of a statement in php sorry i have very basic knowledge in php
Mitul Dabhi

Mitul Dabhi
answered Jan 21 '18 20:16

ucfirst function used to make capital of first character of every word in stantment.

$jbtitle='quality analyst ';
echo ucfirst($jbtitle); // will give you Quality Analyst


hope it clear !!
Edit Answer
Share
Post Answer