Hi @defharo
You say select or checkbox. These 2 field types can save data in 2 different ways. Please be specific as to which field type you are using and also if you have any options selected such as multiple values.
Also, please checkout the select / checkbox documentation. I have a feeling you find some example code which will demonstrate how to use the in_array function you need.
Cheers
E