Just to clarify myself above...
if ($var1 = $var2) { .....

In my crazy head, I see $var1 and $var2 to be in a sort of "read-only" state
inside the () of the if statement.  For a if statement to be able to change
the values in that instance, would be wrong for me.  Afterall, the logic of
a if statement does go something in the lines of "if value equals value then
execute this, else, execute that" etc etc etc.... There's nothing in that
logic of setting or changing any values.... ?

But if I don't want $var1 == $var2 I could do this;
if($var1 == $var2){ <----due to some condition somewhere else
        $var2 = anotherValue <-----change the value so they are not the same


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

Reply via email to