PHP conditional syntax: inequality

Contributor Icon Contributed by qmchenry Date Icon December 27, 2003  
Tag Icon Tagged: PHP programming

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

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

Previous recipe | Next recipe |
 

 
close Reblog this comment
blog comments powered by Disqus