PHP » Operators » <>

Syntax:
expression1 <> expression2
expression1
An expression.
expression2
Another expression to compare it to.

Not equal to.

This is an alias of the "!=" operator. It returns TRUE if the first expression is not equal in value to the second. The two expressions or variables do not have to be of the same type.

Examples

Code:
<?php

if (5.01 <> 5)
   print "5.01 is not equal to 5";

?>
Output:
5.01 is not equal to 5
Explanation:

Two numbers are compared.