mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-12 00:04:11 +02:00
Add mbstring to readme example
This commit is contained in:
@@ -105,8 +105,12 @@ PHP's standard string functions.
|
|||||||
|
|
||||||
```php
|
```php
|
||||||
// Standard library
|
// Standard library
|
||||||
strtoupper('fòôbàř'); // 'FòôBàř'
|
strtoupper('fòôbàř'); // 'FòôBàř'
|
||||||
strlen('fòôbàř'); // 10
|
strlen('fòôbàř'); // 10
|
||||||
|
|
||||||
|
// mbstring
|
||||||
|
mb_strtoupper('fòôbàř'); // 'FÒÔBÀŘ'
|
||||||
|
mb_strlen('fòôbàř'); // '6'
|
||||||
|
|
||||||
// Stringy
|
// Stringy
|
||||||
s('fòôbàř')->toUpperCase(); // 'FÒÔBÀŘ'
|
s('fòôbàř')->toUpperCase(); // 'FÒÔBÀŘ'
|
||||||
|
Reference in New Issue
Block a user