Skip to content

Commit 37786a8

Browse files
authored
Fixed string utility examples (#10838)
* Fixed string utility examples * Updated Str::remove example
1 parent 228216f commit 37786a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,7 +3053,7 @@ The `remove` method removes the given value or array of values from the string:
30533053
```php
30543054
use Illuminate\Support\Str;
30553055

3056-
$string = Str::of('Arkansas is quite beautiful!')->remove('quite');
3056+
$string = Str::of('Arkansas is quite beautiful!')->remove('quite ');
30573057

30583058
// Arkansas is beautiful!
30593059
```
@@ -3567,7 +3567,7 @@ use Illuminate\Support\Str;
35673567

35683568
$string = Str::of('Foo Bar')->ucsplit();
35693569

3570-
// collect(['Foo', 'Bar'])
3570+
// collect(['Foo ', 'Bar'])
35713571
```
35723572

35733573
<a name="method-fluent-str-unwrap"></a>

0 commit comments

Comments
 (0)