ucfirst(): Converting the first char to upper case
Now let us try with one example
Here is a string variable $str with one string inside it. We will use ucfirst() to capitalize first chars of the string.
The output is here
Subscribe to our YouTube Channel here
This article is written by plus2net.com team. https://www.plus2net.com