== vs ===

But the equal operator == is less strict than the identical operator === and can have some hard to predict results, so it’s typically better to only use the identical operator. Strings When comparing a string to an integer the string is evaluated as 0!! evaluates true because first “ABC” is converted to integer and […]

Read More

If

Logical OR Logical AND Not Equal When return value can be boolean or an integer Use if ($ReturnValue === false) or $ReturnValue !== false) If with load of a return value into a variable Ensure you enclose the assignment in brackets or it won’t work correctly

Read More