!== Operator: It is called as non-identical operator. It returns true if operands are not equal, or they are not of the same type.
$x !== $y
Where $x and $y are the operands.
==! Operator: It is nothing but it can be further written as ==(!operand) which returns true or false depending on operands. Both the operators returns the boolean values either true or false.
$x ==! $y
Input: $x = true $y = false Operator: $x !== $y Output: true Operator: $x ==! $y Output: true
Example 1: This program uses both operands and returns the output.
Using !== operator bool(true) bool(false) bool(true) Using ==! operator bool(true) bool(false) bool(true)
Using !== operator bool(true) bool(true) bool(true) Using ==! operator bool(false) bool(false) bool(false)
- Difference Between Blu-Ray and DVD
- What is the difference between MEAN.js and MEAN.io?
- What is the difference between (NaN != NaN) & (NaN !== NaN)?
- Web 1.0, Web 2.0 and Web 3.0 with their difference
- Difference between JSP and ASP
- Difference Between JSP and PHP
- Difference between ASP and ASP.NET
- What is the difference between GUI and CUI?
- Difference between T-SQL and PL-SQL
- Difference between 1NF and 2NF in DBMS
- Difference between ReactJS and Vue.js
- Difference between VGA and SVGA
- What is the difference between Perl and PHP ?
- What is the difference between the | and || or operator in php?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.