Sunday, November 17, 2024
HomeWeb application programmingPHP programmingPHP conditional syntax: inequality

PHP conditional syntax: inequality

To determine if two values are not equal, use the inequality operator:

if ($var1 != $var2)
echo "Nope... not the same";

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

LATEST REVIEWS

Recent Comments

error: Content is protected !!