----- Original Message ----- 
From: "Shadrik"

the not equal to operator?   its !=


From: Wade Smart
-----------------------------
In PHP there are several levels for equality.

x = y; // is always assignment as in let x = y
if (x == y); if (x != y) // is a basic test that just compares values and 
not data types
if (x === y); if (x !==y) // tests both data value and type
for example the value 0 is the same value as FALSE but 0 is numeric and 
FALSE is boolien and
any other value has the value of TRUE but is still boolien FALSE

examples -
$x = 0;
if ($x == 0) // is TRUE
if ($x == "0") // is TRUE
if ($x === 0) // is TRUE
if ($x === "0") // is FALSE
if ($x == FALSE) // is TRUE
if ($x == TRUE) // is FALSE
if ($x === FALSE) // is FALSE
if ($x === TRUE) // is FASLE
if ($x) // is FALSE

Reply via email to