 <p>It is kind of possible using <code>in_array()</code>:</p> <pre><code>if (in_array($_SESSION['id'], array("000001", "000002"))) </code></pre> <p>or alternatively using <code>switch</code>:</p> <pre><code>switch ($_SESSION["id"]) { case "000001": case "000002": // do something break; default: break; } </code></pre>