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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.