Opposite of if($a == $b) ??


#1

Hey,

I’m wondering if there is a way to do this:
if($a DOES NOT EQUAL $b) {
echo “hello”;
}

like exactly the opposite of what would be acheived with
if($a == $b) {
echo “hello”;
}

-Nick


#2

$a != $b

Look at http://www.php.net/manual/en/language.o … arison.php