Saving strings that contain empty variables for later use
<p>Here goes again at my attempt at explaining, hopefully this is clearer. here is my core class.</p>

<pre><code>function __construct() 
{



    $nav = array
    (
        "foo" =&gt; "bar",
        "foo" =&gt; "bar",
    );  


    $navBar = $var_dev-&gt;navBar;

    function navGenerator($navBar) 
    {

    return $navBar;

        /*foreach ($nav as $link_name =&gt; $link)
        {
        return $var_dev-&gt;navBar;
        //return '"&lt;li&gt;&lt;a href="'. $link_name . '"&gt;' . $link . '&lt;/a&gt;&lt;/li&gt;';
        }*/

    }

}
</code></pre>

<p>Here is the other class where navBar is being called...</p>

<pre><code>class standardHandle 
{
    public $navBar = 'lawl';
}
</code></pre>

<p>The above works fine, however I would like <code>$navBar = '&lt;li&gt;&lt;a href="'. $link_name . '"&gt;' . $link . '&lt;/a&gt;&lt;/li&gt;'</code></p>
