PHP barfs (on line 3) when I define a member variable like this:
class Foo()
{
$num;
function DoSomething()
{
$num = 2 + 3;
}
}
I want to do this so I can access if from another function. How can
this be done?
Thanks for your help.
class Foo()
{
$num;
function DoSomething()
{
$num = 2 + 3;
}
}
I want to do this so I can access if from another function. How can
this be done?
Thanks for your help.
Comment