# $field->length()

Returns the length of the field content

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/methods.php#L341>

****

```php
$field->length(): int
```

## Return type

`int`

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


## Examples

```php
<?= $page->text()->kirbytext() ?>

<dl class="text-stats">
  <dt>Characters</dt>
  <dd><?= $page->text()->length() ?></dd>

  <dt>Words</dt>
  <dd><?= $page->text()->words() ?></dd>
</dl>
```