Changing first char to upper case in PHP

Changing the first character

ucfirst() uppercases the first character according to PHP's string behavior. For multilingual text, use Unicode-aware string handling where required.

welcome to plus2net.com
After changing : Welcome to plus2net.com
\welcome to plus2net.com= 'welcome to plus2net.com';
echo \welcome to plus2net.com.'<br>';
echo \"After changing : \".ucfirst(welcome to plus2net.com);
To change all the first chars ( of all words ) of a string we have to use ucwords()
All Basic Codes


Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer