php how to view class varable in script?
<p>the class, which is content.php</p>

<pre><code>class content
{
    private $vars = array();

    public function set($var, $var_value)
    {
        $this-&gt;vars[$var] = $var_value;
    }
</code></pre>

<p>index.php file using the content class</p>

<pre><code>include 'content.php';
$instance = new content();
$instance-&gt;set(image_dir, '/images/');
include 'display.php';
</code></pre>

<p>display.php</p>

<pre><code>&lt;?php

echo '&lt;img src={image_dir}/graphic.gif width=556 height=49&gt;&lt;/td&gt;"';
</code></pre>

<p>how do i use the content->var varable in the display.php? which is the best way?</p>
