php mb convert case

Solutions on MaxInterview for php mb convert case by the best coders in the world

showing results for - "php mb convert case"
Nicolò
25 Feb 2016
1
2<?php
3$str "mary had a Little lamb and she loved it so";
4$str = mb_convert_case($str, MB_CASE_UPPER, "UTF-8");
5echo $str// Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
6$str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8");
7echo $str// Prints Mary Had A Little Lamb And She Loved It So
8?>
9
10
Edoardo
14 Aug 2020
1you have to enable mbstring to use the multi bytes functions
2go to this website and follow the instructions :
3https://www.knowledgebase-script.com/kb/article/how-to-enable-mbstring-in-php-46.html