Which is the correct syntax for is not equal to operator
this -> !=
if($ses_startdate != $startdate) {
echo "I am true";
}
or this -> !==
if($ses_startdate !== $startdate) {
echo "I am true";
}
I had been using !== earlier and it worked without any problem but not it is creating the problem with some condition and when i changed it to != it works fine.. why is that?
!==is more strict than!=,!==also check the datatype.Examples: