What does & in &2 mean in PHP?
<p>In the last line of the following code, it has &amp;2, if($page['special']&amp;2).</p>

<p>What does &amp; mean?</p>

<p>Thanks in advance.</p>

<pre><code>if(isset($_REQUEST['id']))$id=(int)$_REQUEST['id'];
else $id=0;
if($id){ // check that page exists
    $page=dbRow("SELECT * FROM pages WHERE id=$id");
    if($page!==false){
        $page_vars=json_decode($page['vars'],true);
        $edit=true;
    }
}
if(!isset($edit)){
    $parent=isset($_REQUEST['parent'])?(int)$_REQUEST['parent']:0;
    $special=0;
    if(isset($_REQUEST['hidden']))$special+=2;
    $page=array('parent'=&gt;$parent,'type'=&gt;'0','body'=&gt;'','name'=&gt;'','title'=&gt;'','ord'=&gt;0,'description'=&gt;'','id'=&gt;0,'keywords'=&gt;'','special'=&gt;$special,'template'=&gt;'');
    $page_vars=array();
    $id=0;
    $edit=false;
}

// { if page is hidden from navigation, show a message saying that
if($page['special']&amp;2)echo '&lt;em&gt;NOTE: this page is currently hidden from the front-end navigation. Use the "Advanced Options" to un-hide it.&lt;/em&gt;';
</code></pre>
