Multiple values in array
<p>Is it possible to use PHP in_array to check for multiple values? For example I can do this to see if 7 is in array. What if I have 7 and 8? </p>

<pre><code>if (in_array(7, $_SESSION[myvalues]) ) {

}
</code></pre>

<p>UPDATE:</p>

<p>I ran the code above. I know it works but it only looks for a single value in an array. I tried </p>

<pre><code>if (in_array(array(7,8), $_SESSION[myvalues]) ) {...}
</code></pre>

<p>but that looks for both. I was looking for at least one. Ended up doing</p>

<pre><code>if (in_array(7, $_SESSION[myvalues]) || in_array(8, $_SESSION[myvalues])) {...}
</code></pre>
