Link to home
Start Free TrialLog in
Avatar of dht1
dht1

asked on

IF statements

Why does the following statement act as if the "IF" wasn't there?
if ($variable = "x y") {variable2 = 10;}

??? It assumes I mean:
variable2 = 10;

*confused*

Cheers,
Dave
ASKER CERTIFIED SOLUTION
Avatar of mrvithan
mrvithan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dht1
dht1

ASKER

Doh!  Thanks.