# Contains All

Search a string against multiple needles and return `true` if all are found, otherwise `false`. Case-insensitive.

```yaml
summary: "It was the best of times, it was the worst of times."
```

::tabs

::tab antlers
```antlers
{{ if summary | contains_all('best', 'worst') }}
{{ if summary | contains_all('best', 'better') }}
```
::tab blade
```blade
@if (Statamic::modify($summary)->containsAll(['best', 'worst'])->fetch()) ... @endif
@if (Statamic::modify($summary)->containsAll(['best', 'better'])->fetch()) ... @endif
```
::

```html
true
false
```
