contao/test — Issue #991: utf8_ucfirst
Author: importer
Created: 2011-11-28 17:47:16+00:00
State: open
Labels: Feature, framework

Hi team,
I needed utf8_ucfirst and I added it to system/mbstring.php.

Please add it in the next release(2.7.3) so everybody can enjoy it.

```
/**
* Unicode aware ucfirst
*
* Shamelessly stolen from http://bg.php.net/manual/en/function.ucfirst.php
* by Krasimir Berov and modified for TYPOlight.
* Hoping that some day there will be mb_ucfirst().
*
* `param string
* `return string
*
*/
function utf8_ucfirst($string) {
if (!function_exists('mb_ucfirst')) {
$string = utf8_strtoupper(utf8_substr($string, 0, 1)) . utf8_substr($string, 1);
return $string;
}
else {
return mb_ucfirst($string);
}
}
```

Thanks in advance.

--- _Originally created by kberov on September 6th, 2009, at 03:28pm (ID 991)_