Typically, a comparison with falseis performed as follows, where it falseis on the right side:
if(strpos($str, 'php') !== false) {
}
But I also noticed in different places falseon the left side:
if(false !== strpos($str, 'php')) {
}
As far as I understand, they are the same, why do some people put falseon the left side? Is there anything special about this, something I am missing?
source
share