mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-04 12:27:30 +02:00
Docs fixes
This commit is contained in:
@@ -124,7 +124,7 @@ documentation.
|
|||||||
<tr>
|
<tr>
|
||||||
<td>[tidy](#tidy)</td>
|
<td>[tidy](#tidy)</td>
|
||||||
<td>[titleize](#titleize-array-ignore)</td>
|
<td>[titleize](#titleize-array-ignore)</td>
|
||||||
<td>[toAscii](#toascii)</td>
|
<td>[toAscii](#toascii-string-locale--en--bool-removeunsupported--true-)</td>
|
||||||
<td>[toBoolean](#toboolean)</td>
|
<td>[toBoolean](#toboolean)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -436,7 +436,7 @@ default, the comparison is case-sensitive, but can be made insensitive by
|
|||||||
setting $caseSensitive to false.
|
setting $caseSensitive to false.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
s('fòôbàř')->endsWith('bàř', true); // true
|
s('fòôbàř')->endsWith('bàř'); // true
|
||||||
```
|
```
|
||||||
|
|
||||||
##### endsWithAny(string[] $substrings [, boolean $caseSensitive = true ])
|
##### endsWithAny(string[] $substrings [, boolean $caseSensitive = true ])
|
||||||
@@ -446,7 +446,7 @@ By default, the comparison is case-sensitive, but can be made insensitive
|
|||||||
by setting $caseSensitive to false.
|
by setting $caseSensitive to false.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
s('fòôbàř')->endsWith(['bàř', 'baz'], true); // true
|
s('fòôbàř')->endsWithAny(['bàř', 'baz']); // true
|
||||||
```
|
```
|
||||||
|
|
||||||
##### ensureLeft(string $substring)
|
##### ensureLeft(string $substring)
|
||||||
@@ -859,7 +859,7 @@ otherwise. By default the comparison is case-sensitive, but can be made
|
|||||||
insensitive by setting $caseSensitive to false.
|
insensitive by setting $caseSensitive to false.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
s('FÒÔbàřbaz')->startsWith(['fòô', 'bàř'], false); // true
|
s('FÒÔbàřbaz')->startsWithAny(['fòô', 'bàř'], false); // true
|
||||||
```
|
```
|
||||||
|
|
||||||
##### stripWhitespace()
|
##### stripWhitespace()
|
||||||
|
Reference in New Issue
Block a user