php caps first letter of word code example Example: php capitalize first letter ucfirst("hello world!");