hwg-languages archives | Jun 2002 | new search | results | previous | next |
Re: PHP if else statementby "Michael Gerholdt" <gerholdt(at)fredonia.edu> |
|
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