Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

collapse Modifier

Collapses an array of arrays into a flat array. If duplicate keys exist they will get stomped over.

numbers:
- [one, two, three]
- [four, five, six]
{{ numbers | collapse }}
<?php
$collapsed = Satamic::modify($numbers)->collapse()->fetch();
?>
numbers:
- one
- two
- three
- four
- five
- six
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →