php - Capitalise First Letter of Words


/ Published in: PHP
Save to your folder(s)

First Remove all capital letters, then capitalise the first ones in each word.


Copy this code and paste it in your HTML
  1. echo ucfirst (strtolower('FROGS EAT DOGS ON LOGS.')); # outputs: Frogs eat dogs on logs.

URL: http://www.devchunks.com/string/use-php-to-capitalise-your-text/

Report this snippet


Comments


You need to login to view comments.