$field->value()

Returns the value of a field as string.

  • return (string)

Example

<?= $page->text()->value()  ?>