The ucfirst function converts the first character of a string to uppercase.

    
$sentence = 'the quick brown fox.';

$sentenceUcfirst = ucfirst($sentence);

echo $sentenceUcfirst;
// The quick brown fox.