# $field->key()

Returns the name of the field

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Content/Field.php#L135>

****

```php
$field->key(): string
```

## Return type

`string`

This method modifies the existing `$field` object it is applied to and returns it again.


## Examples

```php
<?= $page->title()->key() . ': ' . $page->title()->value() ?>
// Title: Project A
```