If result is not false Note – make sure you surround the assignment and function call in brackets or it doesn’t work!
Category: If, Comparison, etc
? True False Test
Examples $MyVariable ? print “True” : print “False”;
If
LOGICAL OR if (empty($user_id) || in_array($user_id, $banned_list)) LOGICAL AND if (file_exists($filename) && filetime($filename) > time()) { } Not Equal if ($domain !== ‘somedomain.com’) { } When return value can be boolean or an integer Use if ($ReturnValue === false) or $ReturnValue !== false)