take first character in studly php code example Example: php uppercase each word $upperCaseSentance=ucwords("i do not feel good");//I Do Not Feel Good