" and "! ="? Normally, I would use != , And then when I see this <> sign, it means not equal. After that I wen...">

What is the difference between "<>" and "! ="?

Normally, I would use != , And then when I see this <> sign, it means not equal.

After that I went to a Google search , what is the difference between <> and != . But I could not find the answer.

Anyone want to explain?

+6
source share
6 answers

<> has a higher priority than != . Otherwise they are identical.

+16
source

There is no difference. Some languages ​​use <> and some use! =, And some, like PHP, allow both.

+3
source

According to the PHP documentation , they are the same.

+3
source

In PHP,! = And <> are equivalent, you can learn more about them: http://www.php.net/manual/en/language.operators.comparison.php

+2
source

some languages ​​do not know the operator! =, instead they use <>

but in php you can use

+1
source

VB.NET uses <> instead of! =

-one
source

All Articles