How to use mb_strtolower() function In PHP
PHP mb_strtolower()
performs case folding on a string, allowing accurate lowercase conversion for multibyte encodings like UTF-8.
$string = "w3wiki";
$lowercaseString = mb_strtolower($string, 'UTF-8');
echo "Lowercase using mb_strtolower(): $lowercaseString";
How to convert a String to Lowercase in PHP?
Converting a string to lowercase in PHP is a common operation that allows you to standardize string formats or perform case-insensitive comparisons.
Table of Content
- Using strtolower() function
- Using mb_strtolower() function
- Using str_replace( ) function
- Using Loop