mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
19 lines
376 B
Markdown
19 lines
376 B
Markdown
|
---
|
||
|
id: 14687f1c-7f7a-435f-824a-ab14bef7c12b
|
||
|
title: containsAny()
|
||
|
---
|
||
|
|
||
|
# Description
|
||
|
|
||
|
Checks if string contains at least one of all passed strings.
|
||
|
|
||
|
# Syntax
|
||
|
|
||
|
``` php
|
||
|
use function Symfony\Component\String\u;
|
||
|
|
||
|
u('aeiou')->containsAny('a'); // true
|
||
|
u('aeiou')->containsAny(['ab', 'efg']); // false
|
||
|
u('aeiou')->containsAny(['eio', 'foo', 'z']); // true
|
||
|
```
|