Tags
PHP
Asked 7 years ago
29 Nov 2016
Views 713
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 Nov 30 '-1 00:00

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 !!
Post Answer