Skip to content

Commit 73afed6

Browse files
committed
Improved the example
1 parent 047c4a9 commit 73afed6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/string.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ Methods to Search and Replace
301301
// result = ['avatar-73647.png', '73647']
302302

303303
// checks if the string contains any of the other given strings
304-
u('aeiou')->containsAny('a'); // true
305-
u('aeiou')->containsAny(['a', 'b']); // true
306-
u('aeiou')->containsAny(['j', 't', 'z']); // false
304+
u('aeiou')->containsAny('a'); // true
305+
u('aeiou')->containsAny(['ab', 'efg']); // false
306+
u('aeiou')->containsAny(['eio', 'foo', 'z']); // true
307307

308308
// finds the position of the first occurrence of the given string
309309
// (the second argument is the position where the search starts and negative

0 commit comments

Comments
 (0)