--- Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote:

> >> >if ($lineone && $linetwo && $linethree && $linefour = "")
> >>
> >> Your expression yields true if 1-3 are not-empty AND four is an
> >> empty string.
> >
> > Actually, this expression yields true when $lineone, $linetwo,
and
> > $linethree are all true. The variable $linefour is just being set
> > tothe empty string.
> 
> You're so right - I think I need new glasses...
> 
> Thanks for setting this straight :)

No problem, except I was wrong, too. :-) Because $linefour is being
set to the empty string, it will evaluate to false, causing the
entire statement to always evaluate to false.

Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to