Field::getOldValues()

Version 3.8

Get values that were selected before editing

Get all Technical values of old value in array. Some fieldtypes may have multiple values, like join or selection.

Return value

mixed

Full documentation

Show list of values that were selected before change:

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