Field::getName()

Version 3.8

Technical name of the field

Return the technical name of the field.

Return value

String

Full documentation

Show technical name and value of the fields:

foreach ( $Order->getFields() as $Field ){
   $txt .= "<div>{$Field->getName()}: {$Field->getValue()}</div>";
}