PHP ucfirst() Function
Complete PHP String Reference
Definition and Usage
The ucfirst() function converts the first character of a string to uppercase.
Syntax
Parameter |
Description |
string |
Required. Specifies the string to convert |
Example
<?php
echo ucfirst("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. |
|
|
|