- Impact
- 10
I'm trying to write this for one of my sites...
Anyways, I've never used PHP before, but I take programming at school so it's not really hard to understand...
I just have a little trouble with the syntax...
I'm just trying to do a simple if statement but it's not working for some reason. Here's what I have:
What is happening is that it always prints that out, even if a and b aren't equal.
Anyways, I've never used PHP before, but I take programming at school so it's not really hard to understand...
I just have a little trouble with the syntax...
I'm just trying to do a simple if statement but it's not working for some reason. Here's what I have:
Code:
if ($a = $b){
echo 'Print something';
}
What is happening is that it always prints that out, even if a and b aren't equal.