How to Use ucwords in PHP
In this article I will explain how ucwords Function can be used in PHP.
ucwords() function
This function converts the first character of each word in a string to uppercase.
Syntax
Parameter |
Description |
string |
Required. Specifies the string to convert |
Example
<html>
<body>
<?php
echo ucwords("sachin the rock star");
?>
</body>
</html> |
Output
You may also want to read these related articles Click here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here