Answers for "php can't use mb_convert_case"

1

php mb_convert_case

<?php
$str = "mary had a Little lamb and she loved it so";
$str = mb_convert_case($str, MB_CASE_UPPER, "UTF-8");
echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
$str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8");
echo $str; // Prints Mary Had A Little Lamb And She Loved It So
?>
Posted by: Guest on April-28-2020
1

php can't use mb_convert_case

you have to enable mbstring to use the multi bytes functions
go to this website and follow the instructions :
https://www.knowledgebase-script.com/kb/article/how-to-enable-mbstring-in-php-46.html
Posted by: Guest on July-12-2021

Browse Popular Code Answers by Language