Field::getTitle()

Version 4

Visible title of the field

Return the visible, localized title of the field.

Return value

String

Full documentation

Show field title and value:

foreach $Page->getFields() as $Field ){
    $txt .= "{$Field->getTitle()}: {$Field->getValue()}";
}