<?php
function mb_capital($str_array) {
return mb_strtoupper(mb_substr($str,0,1, 'UTF-8'), 'UTF-8').mb_strtolower(mb_substr($str,1,strlen($str), 'UTF-8'), 'UTF-8');
}
function mb_ucwords($string) {
return = mb_convert_case ($string, MB_CASE_TITLE, "utf-8");
}
$lastname = mb_ucwords('dudás');
//$lastname = mb_capital($lastname);
$firstname = 'árpád';
//$firstname = mb_capital($firstname);
echo $lastname.' '.$firstname;
$arr_str = split(' ', $lastname.' '.$firstname);
print_r($arr_str);
?>
- Output for 5.3.0 - 5.3.18, 5.4.0 - 5.4.8
- Parse error: syntax error, unexpected '=' in /in/sjmBZ on line 7
Process exited with code 255.
preferences:
172.04 ms | 1395 KiB | 35 Q