Is it possible to use the following syntax in PHP4 (or anything that would allow me to change the class refered to depending on a variable holding a class name):
if (...)
{ $var='classA'; }
else
{ $var='classB'; }
$var::method($param1,$param2);
Thank you in advance for your help. I have been looking for a solution to this problem for hours.
if (...)
{ $var='classA'; }
else
{ $var='classB'; }
$var::method($param1,$param2);
Thank you in advance for your help. I have been looking for a solution to this problem for hours.