while($x!=$y OR $a!=$b)
{
...
}
urg
\\
while (($x != $y) && ($a != $b)) { ... }
///
ODER:
\\
while (($x != $y) and ($a != $b)) { ... }
///
die inneren Klammern kann man sich auch sparen, dienen lediglich der Übersichtlichkeit.
Die zweite Variante ist prinzipiell vorzuziehen! Leider sind die beiden Varianten nicht hundertprozentig äquivalent.
Siehe: http://fr3.php.net/manual/en/language.operators.logical.php
Gruß,
KonRad -
--
"Was Gott zusammengeführt hat ..." :: polithink.org -
the politicultural e-zine :: http://www.polithink.org
"Was Gott zusammengeführt hat ..." :: polithink.org -
the politicultural e-zine :: http://www.polithink.org