note 55773 rejected from language.types.boolean by mazzanet
| From: | mazzanet@php.net | Date: | Sat, 13 Aug 2005 08:54:04 +0000 |
| Subject: | note 55773 rejected from language.types.boolean by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93543@lists.php.net to get a copy of this message | ||
Note Submitter: Matan
----
wachout of tring to loop booleans:
for instance:
<?php
$ok = TRUE;
foreach($booleanarray as $val){ //let's say that $booleanarray has TRUE and FALSE cells only.
$ok = $ok AND $val;
}
return $ok;
?>
that little code above supposibly checks if all cells are TRUE. after cracking my head for quite a
while i found out it doens't realy work ('ok' will stay TRUE no matter what)
So unless i some how fucked up with the syntex this should be fix and untill then use another
method.
matan.