if ($oldsetting['varname'] == 'duddieslist_displayoptions') { // custom code here to convert the array into corresponding bitfield value }