how to declare a php class with a variable name
<p>is there a way in php<br>
to declare a class using a variable<br>
ie (this doesnt work - but its here to give you an idea of my intention):</p>

<pre><code>$myname = "the_class";
class $myname {
 ...
}
</code></pre>

<p>i also tried:</p>

<pre><code>define("MYNAME","the_class");
class MYNAME{
 ...
}
</code></pre>

<p>and i tried:</p>

<pre><code>$myname = "the_class";
class $$myname {
 ...
}
</code></pre>

<p>this doesnt really help:<br>
<a href="http://php.net/manual/en/language.variables.scope.php" rel="nofollow">http://php.net/manual/en/language.variables.scope.php</a></p>

<p>nor does this:<br>
<a href="http://us3.php.net/manual/en/keyword.class.php" rel="nofollow">http://us3.php.net/manual/en/keyword.class.php</a></p>

<p>thanks very much for your help</p>
