Can I include a class inside an method?

ErikV

New Member
Just for the case the autoload thing won't work, I wonder if it's fine with PHP to include a class inside a method?Example:\[code\]public method doSomething() { include ('MyClass.php'); $foo = MyClass::doAnotherThing();}\[/code\]
 
Back
Top