Its syntax is: string ucfirst (string string) <? $sentence = "cooking"; $sentence = ucfirst($sentence); print $sentence; ?>