$my_str="Hello welcome to plus2net.com";
$my_str=strtolower($my_str);
echo $my_str;
Above code output will be
hello welcome to plus2net.com
Syntax
$val=strtolower($input_sting);
<?php
$str = "HELLO World!";
echo strtolower($str); // Output: hello world!
?>
<?php
$str = "PHP 101: Programming";
echo strtolower($str); // Output: php 101: programming
?>
<?php
$str = "PHP is Fun, but ALSO CHALLENGING!";
echo strtolower($str); // Output: php is fun, but also challenging!
?>
<?php
$str = "This is LINE 1\nTHIS IS LINE 2\n";
echo strtolower($str); // Output: this is line 1\nthis is line 2\n
?>
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.
fahim | 01-01-2013 |
good code |