I am running this line of code.
$string = convert_case('MONTAÑA 221');
public function convert_case($string)
{
$string = mb_convert_case($string, MB_CASE_TITLE, "UTF-8");
return $string;
}
When I run it in laravel I get empty string but when I run it in the browser using just a simple test.php file over wamp, I get the correct string.
I have seen issues like this before, and maybe yours is different, but setting the encoding of the HTML page may be useful to you.
In the header: