$field->value()

Returns the value of a field as string.

  • return (string)

Example

<?php echo $page->text()->value()  ?>