Inserts a string at the position provided. The beginning of the string is position 0.
opinion: This is yummy.
{{ opinion | insert('not', 8) }}
{{ Statamic::modify($opinion)->insert(['not', 8]) }}
This is not yummy.
insert
ModifierInserts a string at the position provided. The beginning of the string is position 0.
opinion: This is yummy.
{{ opinion | insert('not', 8) }}
{{ Statamic::modify($opinion)->insert(['not', 8]) }}
This is not yummy.
Submit improvements, related content, or suggestions through Github.
Betterify this page →