Dude, you're never defining the funcition. In this example
class MyClass
{
var $GetValFunc;
function MyClass($getvalfunc)
{
$this->GetValFunc = array(&$getvalfunc);
}
function RunCallback()
{
return $this->GetValFunc0;
}
}
You're creating an instance var of GetValFunc.
You need:
class Rob {
function GetValFunc() {
return 0;
}
function RunCallBack {
return $this->GetValFunc();
}
}
That's the answer to your question, but it seems like you shouldn't be doing this way.