Friday, September 19, 2025
HomeLanguagesPHP mb_strtolower() Function

PHP mb_strtolower() Function

The mb_strtolower() is a PHP inbuilt function that returns lowercase alphanumeric characters.

Syntax:

mb_strtolower(string $string, ?string $encoding = null): string

Parameters: This function accepts 2 parameters:

  • string: This parameter specifies the lowercase string.
  • encoding: This parameter denotes the character encoding, & in case omitted or null, then the internal character encoding value will be utilized.

Return value: This function converted the uppercase string into lowercase alphanumeric characters and then returns those characters.

Example 1: The following code shows the working for the mb_strtolower() function.

PHP




<?php
$str = "GEEKSFORGEEKS" ;
$str2 = mb_strtolower($str);
echo $str2;
?>


Output:

neveropen 

Example 2: The following code shows the working for the mb_strtolower() function.

PHP




<?php
$str = "Dmmm" ;
$str2 = mb_strtolower($str);
echo $str2;
?>


Output:

dmmm

Reference: https://www.php.net/manual/en/function.mb-strtolower.php

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32303 POSTS0 COMMENTS
Milvus
84 POSTS0 COMMENTS
Nango Kala
6666 POSTS0 COMMENTS
Nicole Veronica
11841 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11898 POSTS0 COMMENTS
Shaida Kate Naidoo
6781 POSTS0 COMMENTS
Ted Musemwa
7059 POSTS0 COMMENTS
Thapelo Manthata
6740 POSTS0 COMMENTS
Umr Jansen
6745 POSTS0 COMMENTS