How to convert unicode string to title case in PHP

1 Answer

0 votes
$str = "php java c python αλώπηξ";

$str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8");

echo $str;
 
    


/*
run:
 
Php Java C Python Αλώπηξ
 
*/

 



answered Sep 28, 2023 by avibootz
...