$collection->append()
Appends an element
$collection->append(string|TValue ...$args): Kirby\Toolkit\Collection
Parameters
Name | Type | Default |
---|---|---|
...$args | string orTValue |
no default value |
Return type
This method modifies the existing $collection
object it is applied to and returns it again.
Parent class
Examples
$collection->append('key', $value);
$collection->append($value);