summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Helbling2013-08-15 13:34:59 +0000
committerChristian Helbling2013-08-15 13:34:59 +0000
commitd6962074f09a541ea47fadd7f1c1ad068420b8a6 (patch)
treebf3e2e154aad5c37cb5845ab3b88f3c68245e12e /it.class
parent28356a5714fdcffa76b11457103a5b7b8d508348 (diff)
downloaditools-d6962074f09a541ea47fadd7f1c1ad068420b8a6.tar.gz
itools-d6962074f09a541ea47fadd7f1c1ad068420b8a6.tar.bz2
itools-d6962074f09a541ea47fadd7f1c1ad068420b8a6.zip
add it::lcfirst() simliar to it::ucfirst()
Diffstat (limited to 'it.class')
-rw-r--r--it.class8
1 files changed, 8 insertions, 0 deletions
diff --git a/it.class b/it.class
index 1c12ad4..f7ebbe9 100644
--- a/it.class
+++ b/it.class
@@ -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)