- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
ucfirst() function in PHP
The ucfirst() function is used to convert the first character of a string to uppercase.
Syntax
ucfirst(str)
Parameters
str − The specified string
Return
The ucfirst() function returns the converted string.
Example
The following is an example −
<?php echo ucfirst("demo"); ?>
Output
Demo
Advertisements