Show text with first uppercase letter

Asked

Viewed 200 times

0

I would like to know how to show data from database, that they all start with the first letter in capital letters, example "I am good", and not "i am good".

Is there any way to do it?

1 answer

7

yes, use ucfirst

ucfirst("eu sou bom"); //Retorna "Eu sou bom"
  • grateful!!!!!

  • @user106225 click on the green arrow below the voting arrows to consider the answer as correct.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.