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.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.