As in the title of the question - should I use $variable == false
or !$variable
when checking the value in some if
? I know that they're basically doing the same thing and the second version is faster for some reason, but I'm asking about best practices.
There was a similar question here: Exclamation mark in front of variable - clarification needed but my question is different. I'm aware that both ways are doing the same thing. I'm asking if there's any technical detail or best practice that would make one of them preferable.