Testing if any of the items are false

From: Date: Mon, 10 Feb 2003 21:09:54 +0000
Subject: Testing if any of the items are false
Groups: php.general 
Request: Send a blank email to php-general+get-135114@lists.php.net to get a copy of this message
How can I do this to determine if one of the items is false if none are then I what it to print the first echo of there is one that is false then print the second echo $test1= "YES"; $test2= "YES"; $test3= "YES"; $test4= "YES"; $ftest1= "YES"; $ftest2= "NO"; $ftest3= "YES"; $ftest4= "YES"; if ($test1==$ftest1)or($test2==$ftest2)or($test3==$ftest3) or($test4==$ftest4){ echo "all of the items are true"; }else{ echo "one of the items is false"; } -- Best regards, rdkurth mailto:rdkurth@starband.net

« previous php.general (#135114) next »