If I have code like this
$myFunction = new classFoo(); //ie. class
$myFunction-> new functionBar($value1,$value2,$value3); //ie. function
I understand in a normal scenario, if I had this function...
function functionBar($value1,$value2,$value3){
$answer=$value1+$value2+$value3
return $answer
}
I could then plug into it like this
$answer=functionBar(1,2,3)
I could expect an echo of $answer to be 6, correct?
If I'm wrong there let me know, because my real issue is that the function is wrapped in a variable, which if I examine through console has what I need in it, but I can't get my head around how to access it with that extra layer involved.