How do I display the first letter as uppercase?

后端 未结 7 1345
孤城傲影
孤城傲影 2021-01-18 08:41

I have fname and lname in my database, and a name could be stored as JOHN DOE or john DOE or JoHN dOE, but ultimately I want to display it as John Doe

fname being Jo

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-18 09:18

    Change the names to lower and then add ('A' - 'a') to the first letter of fname & lname.

提交回复
热议问题