Keys Modifier
Retrieves just the keys from the given array.
the_team:
jack: Jack McDade
jason: Jason Varga
jesse: Jesse Leite
joshua: Joshua Blum
duncan: Duncan McClean
{{ the_team | keys }}
<?php
$keys = Statamic::modify($the_team)->keys()->fetch();
?>
- jack
- jason
- jesse
- joshua
- duncan
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page