Jump to content

this OR that


jacko310592

Recommended Posts

if ($_SESSION['trackBrowsing'] !== 'value01' && $_SESSION['trackBrowsing'] !== 'value02')

 

Note the && makes this code only execute when $_SESSION['trackBrowsing'] equals something different then value01 and value02 otherwise if you would use || this code would execute when one of both returns true $_SESSION['trackBrowsing'] === 'value01' by which it does not equal value02 for example

Link to comment
https://forums.phpfreaks.com/topic/189359-this-or-that/#findComment-999605
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.