# $listItems->pluck()

> Extracts all values for a single field into a new array

- Source: `src/Toolkit/Collection.php#L784` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Toolkit/Collection.php#L784>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$listItems->pluck(string $field, null|string $split = null, bool $unique = false): array
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$field` | `string` | `–` |
| `$split` | `null\|string` | `null` |
| `$unique` | `bool` | `false` |

## Return type

`array`

## Parent class

`Wagnerwagner\Merx\ListItems` inherited from `Kirby\Toolkit\Collection`
