PHP ucfirst() string function The PHP ucfirst() string function The ucfirst() string function used to converts in uppercase the first letter of a string.