$users->set()
Adds a new element to the collection
$users->set(mixed $key, mixed $value = null): Kirby\Toolkit\Collection
Parameters
Name | Type | Default | Description |
---|---|---|---|
$key |
mixed |
– | string or array |
$value |
mixed |
null |
Return type
Inherited from
Kirby\Toolkit\Collection