$field->split($separator = ',')

Splits the field content into an array

  • return (array)

Example

<h2>Tags</h2>
<ul>
  <?php foreach($page->tags()->split(',') as $tag): ?>
  <li><?php echo $tag ?></li>
  <?php endforeach ?>
</ul>

Is something missing or incorrect? Edit this page on Github…