<?php

error_reporting(-1);
mb_internal_encoding('UTF-8');

$test = 'лалка азаза';
$test = ucfirst($test);   

echo $test;

?>