[Solved] How to write an if(or switch) statement to check all the values of an array in one go in php [closed]
[ad_1] You can compare them like this: $testing = Array(true, true, true); if($testing == array(true, true, true)){ //do something }else if ($testing == array(true, true, false)){ //do something else } You don’t need to use the same variable $testing again. Just create a new array to compare it with. 1 [ad_2] solved How to write … Read more