PHP Variable not working the way I am sure it worked before
<p>Hi there I hope someone can help me</p>

<p>I have this variable</p>

<pre><code>var $page_slug = "posts";
</code></pre>

<p>and want to make insert a dynamic value into the "posts" section but for some reason I keep getting an error that the code is not formatted correctly?</p>

<pre><code>var $page_slug = $_SERVER['REQUEST_URI'];
</code></pre>

<p>Above cause error... (With the formatting)...
I have also tried</p>

<pre><code>var $page_slug = ".$_SERVER['REQUEST_URI'].";
</code></pre>

<p>I still get an error?</p>

<p>I cannot see why I cannot get to make the value dynamic, would appreciate any help!</p>

<p>This is part of the code:</p>

<pre><code>class FakePage
{
var $page_slug = "author/admin/posts";
    /**
     * The slug for the fake post.  This is the URL for your plugin, like:
     * http://site.com/about-me or http://site.com/?page_id=about-me
     * @var string
     */

    /**
     * The title for your fake post.
     * @var string
     */
var $page_title = "Test";
</code></pre>

<p>as soon as I do </p>

<pre><code>class FakePage
    {
</code></pre>

<p>$page_slug = ""; &lt;--- with a dynamic value it gives me an error...</p>
