phpuppercaseucfirst

How to make first letter of a word capital?


I have a word default and I want a php function to make only first letter capital. Can we do that. Please help me out as I am very new to php coding.


Solution

  • You may want to use ucfirst().

    For multibyte strings, please see this snippet.