Field::getChangedValues()

Version 3.8

Get values that were added or removed

Get all Technical values of values that were either added or removed to field.

Return value

mixed

Full documentation

Show list of values that were changed:

foreach ( $Product->accessories->getChangedValues() as $value ){
    $txt .= "<li>{$value}</i>";
}