Saturday, December 13, 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
32447 POSTS0 COMMENTS
Milvus
105 POSTS0 COMMENTS
Nango Kala
6814 POSTS0 COMMENTS
Nicole Veronica
11952 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12030 POSTS0 COMMENTS
Shaida Kate Naidoo
6950 POSTS0 COMMENTS
Ted Musemwa
7201 POSTS0 COMMENTS
Thapelo Manthata
6898 POSTS0 COMMENTS
Umr Jansen
6882 POSTS0 COMMENTS