For ucfirst() function we can say that one of the simple php function. But sometimes this simple function can also create a confusion for you.
Normally we perform this function on lower cased string. But have you tried to apply this function to Upper cased string.
Basically we can understand that ucfirst() will operate on whole string and make only first character to upper case. But this is not the case.
This is because, ucfirst() function will operate only on first character of the string rather than whole string.
Avinash Zala is leading various projects which deals with the various technology involved with the web. A combination of perfect technical and management skills. Avinash would like to chat with you and convert your imagination into the working system. You can get in touch with him on Facebook and Twitter.
View all posts by: Avinash