- How can I make a string title case in PHP?
How can I make a string title case in PHP?
$title = ucwords('hello world');
There is also
$title = ucfirst('hello world');
which just capitalizes the first letter.
Copyright © 2008-2021, dave. Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.