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

starts_with Modifier

Returns true if the value starts with a given string. This comparison is case-insensitive.

reply: Actually, I disagree because this is the internet.
{{ if reply | starts_with('actually') }}
{{ if reply | starts_with('respectfully') }}
@if (Statamic::modify($reply)->startsWith('actually')->fetch())
 
@endif
 
@if (Statamic::modify($reply)->startsWith('respectfully')->fetch())
 
@endif
true
false
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →