printf string in capital letters in php code example Example: php capitalize first letter ucfirst("hello world!");