Mega Code Archive

 
Categories / Php / Strings
 

Ucfirst() function capitalizes the first letter of a string

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