Field::getType()

Version 3.8

Type of the field type

Returns technical name of fieldtype.

Return value

String

Full documentation

List field names and types:

foreach ( $Order->getFields() as $Field ){
   $txt .= "<div>Field {$Field->getName()} type is {$Field->getType()}<div>";
}