vendredi 8 juillet 2016

Converting Boolean values inside array into if statement

What is the best way to convert array values in to if statement. The array values should be compared by AND and the arrays by OR. I can do this using EVAL but there must be other way too..

Array
(
    [0] => false
    [1] => true
)
Array
(
    [0] => true
    [1] => false
)
Array
(
    [0] => false
)
Array
(
    [0] => true
)
Array
(
    [0] => true
)

Aucun commentaire:

Enregistrer un commentaire