Dave's Brain

Browse - Programming Tips - How can I make a string title case in PHP?

Date: 2010mar28
Language: php

Q.  How can I make a string title case in PHP?

A.  Use ucwords()

$title = ucwords('hello world');

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.