PHP ucwords() Function
Complete PHP String Reference
Definition and Usage
The ucwords() function converts the first character of each word in a string to uppercase.
Syntax
Parameter |
Description |
string |
Required. Specifies the string to convert |
Example
<?php
echo ucwords("hello world");
?>
|
The output of the code above will be:
Complete PHP String Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|