PHP Programing language

lcfirst() & ucfirst() Functions in PHP
Previous Home Next

lcfirst()

The lcfirst() function converts the first character of a string to lowercase.

Syntax:
lcfirst(string)

Example:

<?php
echo lcfirst("GUD MORNING!");
?>

 

Output:

gUD MORNING!

ucfirst()

The ucfirst() function converts the first character of a string to uppercase.

Syntax:
ucfirst(string)

Example:

<?php
echo ucfirst("gud morning!");
?>

Output:

Gud morning!

Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: