the class, which is content.php
class content
{
private $vars = array();
public function set($var, $var_value)
{
$this->vars[$var] = $var_value;
}
index.php file using the content class
include 'content.php';
$instance = new content();
$instance->set(image_dir, '/images/');
include 'display.php';
display.php
<?php
echo '<img src={image_dir}/graphic.gif width=556 height=49></td>"';
How do I use the content->var variable in the display.php? which is the best way?