Re: PHP if else statement

by "Michael Gerholdt" <gerholdt(at)fredonia.edu>

 Date:  Thu, 13 Jun 2002 14:51:15 -0400
 To:  <richard(at)rkwinternet.com>,
"HWG" <hwg-languages(at)hwg.org>
 References:  rkwinternet
  todo: View Thread, Original
One equals sign is the assignment operator - it therefore alway evaulates to
true
Two equals signs is to check for existing value rather than to assign value

> If($bedrooms=="") did the trick, but why did it require a == instead of a
= ?

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA