Is there a simpler way to check if a variable equals a variety of numbers?
<p>This is what i have currently</p>

<pre><code>if ($j == 1 || $j == 2 || $j == 3)
</code></pre>

<p>Is there a simpler way of writing this. Something like...</p>

<p><em>pseudocode</em></p>

<pre><code>if ($j == 1-3)
</code></pre>
