In php difference between != and <> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

In php difference between != and <>

Both are not equal then what is their use

16th May 2020, 5:13 PM
Abhay
Abhay - avatar
2 Answers
+ 1
<> and !=are just synonyms. That means they are completely interchangeable. The history of php is a bit wild, so naming conventions, even to the point of how operators are to be called, were and still are not really unified. In conclusion, one's old and one's new.
16th May 2020, 5:19 PM
Jella
Jella - avatar
+ 1
16th May 2020, 5:20 PM
Abhay
Abhay - avatar