Changing first char to upper case in PHP

welcome to
After changing : Welcome to
$string= 'welcome to';
echo $string.'<br>';
echo "After changing : ".ucfirst(welcome to;
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


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here

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