Field::getApiValue()

Version 4

Value that is returned in API

Value that is returned is API as default. For example, company returns company name and address returns an array with address information.

Return value

mixed

Full documentation

Show the name of the company:

$txt .= "Name is: {$sivu->company->getApiValue()}";