1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-07-30 19:40:43 +02:00

Multibyte-aware string function

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. ❤️
This commit is contained in:
Niklas
2019-01-11 20:12:41 +01:00
committed by GitHub
parent 3bb3d2147a
commit 8e379ffc8f

View File

@@ -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);
}
```