ucfirst() function capitalizes the first letter of a string.
Its syntax is: string ucfirst (string string) <? $sentence = "cooking"; $sentence = ucfirst($sentence); print $sentence; ?>