Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

This course is the most refreshing take on teaching design that I've come across.

— Mikaël Sévigny, Developer

contains_any Modifier

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

summary: "It was the best of times, it was the worst of times."
{{ if summary | contains_any('good', 'better', 'best') }}
@if (Statamic::modify($summary)->containsAny(['good', 'better', 'best'])->fetch()) @endif
true
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →