Thursday, June 11, 2026
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
32515 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6896 POSTS0 COMMENTS
Nicole Veronica
12012 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12109 POSTS0 COMMENTS
Shaida Kate Naidoo
7019 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6963 POSTS0 COMMENTS