$files->not()
Returns a Collection without the given element(s)
$files->not(mixed $keys = null): Kirby\Cms\Collection
Parameters
Name | Type | Default | Description |
---|---|---|---|
$keys |
mixed |
null |
any number of keys, passed as individual arguments |
Return type
Example
<ul>
<?php foreach($page->files()->not($page->files()->first()) as $file): ?>
<li>
<a href="<?= $file->url() ?>">
<?= html($file->filename()) ?>
</a>
</li>
<?php endforeach ?>
</ul>
Inherited from
Kirby\Cms\Collection