How To Use Strtolower Function With Example In PHP

admin_img Posted By Bajarangi soft , Posted On 24-09-2020

The strtolower() function  make a input string to lowercase.

PHP strtolower  Function with example

Syntax of strtolower() function and Usage.

strtolower(string)

Parameter Values

string -> The input string.

Let's learn

1.Create strtolower()

strtolower("BAJARANGISOFT")


2.Print string using strtolower() function.

echo strtolower("BAJARANGISOFT")


Example(1)

<?php
  echo strtolower("BAJARANGISOFT");
?>


Complete Code of strtolower() Function:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>PHP string to lowercase function</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="text-center">
        <h1>PHP strtolower() Function</h1>
    </div>
    <br>
    <h2>The strtolower() function  make a input string to lowercase</h2>
    <div class="well">
        <?php
            echo "<h4>".strtolower("BAJARANGISOFT")."</h4>";
        ?>
    </div>
    <br>
</div>
</body>
</html>

 

Related Post