I have an array with boolean values, e.g.
$myarray = array(true, false, false, true, false);
If you want to get the product of your array, then just use
array_product() to multiply each value with each other.
$result = array_product($myarray);
Note that in your array the values
FALSE just get converted to 1 / 0.