PHP conditional syntax: inequality

Contributor Icon Contributed by qmchenry  
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";

 

1 Comment -


No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment -