[Solved] Are this if statements equal? [closed]
Let us break it down. isset($_SESSION[‘id’]) == 1 The first part, the isset() call, will return a boolean value (true or false), depending on if the session id is set or not. When you compare an integer value with a boolean value, using the == operator, the integer will be coerced (or cast/type-juggled) into a … Read more