From d6962074f09a541ea47fadd7f1c1ad068420b8a6 Mon Sep 17 00:00:00 2001 From: Christian Helbling Date: Thu, 15 Aug 2013 13:34:59 +0000 Subject: add it::lcfirst() simliar to it::ucfirst() --- it.class | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/it.class b/it.class index 1c12ad4..f7ebbe9 100644 --- a/it.class +++ b/it.class @@ -440,6 +440,14 @@ static function ucfirst($string) return mb_strtoupper(mb_substr($string, 0, 1)) . mb_substr($string, 1); } +/** + * 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 */ -- cgit v1.2.3