How to make the page selected in PHP?
<pre><code>$AllPages = array('dashborad.php','myprojects.php','team.php','time.php');
        $key = array_search($pagename,$AllPages);

        /*if(array_search($pagename,$AllPages)){
            $selectedclass = "new_list_item1_curent";
        } else {
            $selectedclass = "";
        }*/

        $tabbing = "&lt;ul class=\"new_list_item1\"&gt;
                    &lt;li&gt;&lt;a href=\"projects_dashboard.php\" class=\"".$selectedclass."\"&gt;&lt;span&gt;Dashboard&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=\"myprojects.php\" class=\"".$selectedclass."\"&gt;Projects&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=\"team.php\" class=\"".$selectedclass."\"&gt;&lt;span&gt;Team&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href=\"time.php\" class=\"".$selectedclass."\"&gt;&lt;span&gt;Time&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;";
        return $tabbing;
</code></pre>
