Converting the first letter to upper case of each word
Now let us try with one example Here is a string variable $str with one string inside it. We will use ucwords() to capitalize first chars of every words inside it.
The output is here
With delimitersHere we have used , as word delimiters
Output is here
Now we will use | as delimiters
Output is here
Using both , and | as delimiters
Output is here
DEMOSubscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
![]() | ||||||
| ||||||