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
32688 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
7057 POSTS0 COMMENTS
Nicole Veronica
12198 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12293 POSTS0 COMMENTS
Shaida Kate Naidoo
7182 POSTS0 COMMENTS
Ted Musemwa
7447 POSTS0 COMMENTS
Thapelo Manthata
7160 POSTS0 COMMENTS
Umr Jansen
7150 POSTS0 COMMENTS