diff options
author | Christian Helbling | 2013-08-15 13:34:59 +0000 |
---|---|---|
committer | Christian Helbling | 2013-08-15 13:34:59 +0000 |
commit | d6962074f09a541ea47fadd7f1c1ad068420b8a6 (patch) | |
tree | bf3e2e154aad5c37cb5845ab3b88f3c68245e12e | |
parent | 28356a5714fdcffa76b11457103a5b7b8d508348 (diff) | |
download | itools-d6962074f09a541ea47fadd7f1c1ad068420b8a6.tar.gz itools-d6962074f09a541ea47fadd7f1c1ad068420b8a6.tar.bz2 itools-d6962074f09a541ea47fadd7f1c1ad068420b8a6.zip |
add it::lcfirst() simliar to it::ucfirst()
-rw-r--r-- | it.class | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -441,6 +441,14 @@ static function ucfirst($string) } /** + * Lowercase first character similar to lcfirst() but for mbstring.internal_encoding + */ +static function lcfirst($string) +{ + return mb_strtolower(mb_substr($string, 0, 1)) . mb_substr($string, 1); +} + +/** * Uppercase first character of each word similar to ucwords() but for mbstring.internal_encoding */ static function ucwords($string) |