Is this a possible function?
I need to check if a variable is existent in a list of ones I need to check against and also that cond2 is true eg
if($row[\
You're lookin for the function in_array().
if (in_array($row['name'], array(1, 2, 3)) && $cond2) { #...