1. Home
  2. Php
  3. Uppercase

Converts first letter of the string to uppercase.

#php
echo ucfirst("uppercase this string");
// outputs "Uppercase this string"
copy
Full Php cheatsheet