|
|
Tutorials » Php »
|
Topic |
What is lcfirst Function?
|
|
Explanation |
|
In PHP, this function is used to make a string's first character to lowercase.
Syntax:
lcfirst(str)
In the above syntax "str" specifies the string whose first character is to be converted into lowercase.
Example:
<?php
$str = "Hiox India!";
echo lcfirst($str);
?>
Result:
hiox India!
NOTE:
The lcfirst() function works only in PHP >5.3 only.
In the above example the first letter "H" is converted to lowercase and displayed as "hiox India".
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|