mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-17 10:40:44 +02:00
Add exceptions to ArrayAccess examples
This commit is contained in:
@@ -157,6 +157,9 @@ $stringy = S::create('Bàř', 'UTF-8');
|
|||||||
echo $stringy[2]; // 'ř'
|
echo $stringy[2]; // 'ř'
|
||||||
echo $stringy[-2]; // 'à'
|
echo $stringy[-2]; // 'à'
|
||||||
isset($stringy[-4]); // false
|
isset($stringy[-4]); // false
|
||||||
|
|
||||||
|
$stringy[3]; // OutOfBoundsException
|
||||||
|
$stringy[2] = 'a'; // Exception
|
||||||
```
|
```
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
Reference in New Issue
Block a user