$str="Welcome to Plus2net.com";
echo lcfirst($str);
Output is here
welcome to plus2net.com
Syntax
lcfirst( $input_string)
Parameter | DESCRIPTION |
---|---|
$input_string | Required : Input string |
$str = "Hello World";
echo lcfirst($str); // Output: "hello World"
$str = "HELLO WORLD";
echo lcfirst($str); // Output: "hELLO WORLD"
$str = "john doe";
echo ucfirst(lcfirst($str)); // Output: "John doe" (First letter of string capitalized, rest unchanged)
<?php
$str = "@Hello World!";
echo lcfirst($str); // Output: "@Hello World!"
?>
Author
🎥 Join me live on YouTubePassionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.