Home » PHP

PHP strtolower() function with example

PHP strtolower() function: Here, we are going to learn about the strtolower() function with example.
Submitted by IncludeHelp, on February 03, 2019

PHP strtolower() function

strtolower() function is a string function, it accepts the string and returns an lowercase string.

Syntax:

    strtolower(string);

Example:

    Input: "This is my COMPUter!"
    Output: "this is my computer!"

PHP code:

<?PHP
    $str = "This is my COMPUter!";
    
    echo (strtolower($str));
?>

Output

this is my computer!




Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.