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
DEMO
This article is written by plus2net.com team.
![]() | ||||
| ||||