Quote:
Originally Posted by Chompy
hmm, so
PHP Code:
if (foo = bar) { would assign bar too foo?
if (foo == bar) { would be to check if foo is equal to bar?
think I got it, if that was that I just understood now
|
No.
foo = bar; would assign the value of bar to foo.
You can't assign a value to something in a condition statement.