From 8e379ffc8f3cc58cadc4d9de273cb772fc8d3852 Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 11 Jan 2019 20:12:41 +0100 Subject: [PATCH] Multibyte-aware string function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I notice you used some emoji and therefore like unicode. I think it would be a good idea to (indirectly) teach users to use functions which can do international alphabets and emoji from the start. I read through your guide and think it *is* awesome. In my decade as a PHP developer I have never seen such a succinct and informative explanation of abstract classes before. ❤️ --- chapters/functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/functions.md b/chapters/functions.md index 447d6c0..f95f79a 100644 --- a/chapters/functions.md +++ b/chapters/functions.md @@ -37,7 +37,7 @@ You can also return a value from a function. You can only return a single value from a function. ```php function capitalize($value) { - return strtoupper($value); + return mb_strtoupper($value); } ```