How can I check if 20 variables are all true, or if 20 variables are all false?
if possible without using a really long if ...
the variables are actually array elements:
array('a'=> true, 'b'=> true ...)
to make it more clear:
if(count(array_unique($your_array)) === 1)
return current($your_array);
else return;