Ok, this might be a simple one for quite a few but I'm having trouble finding the right syntax to make this happen. I'm wanting to execute the equivalent of the following code and getting "can't instantiate non-existent class" errors when calling bar(). Thanks in advance.
class a
{
function foo() {
// do stuff here
}
}
function bar() {
$myObj = new a;
$myObj->foo();
}
Oh yeah, and the class and function structure is intentional.