Short cut for (if,and) statment
<p>If there any way to write short cut code instead of this one</p>

<p>I want to say if page id is 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 then show something and else show something else</p>

<pre><code>&lt;?PHP
if ($page[id]==1 || $page[id]==2 || $page[id]==3 || $page[id]==4 || $page[id]==5 || $page[id]==6 || $page[id]==7 || $page[id]==8 || $page[id]==9 || $page[id]==10){

echo "something";

}else{

echo "something else";
} 

?&gt;
</code></pre>

<p>thanks
that would helps me a lot for longer example since the ids are numbers 1,2,3...etc</p>
