Suppose I had the following class:
class MyClass { public function Talk() { $Say = \"Something\"; return $Say; } }
I th
$say is not a class property. If it was, you would define your class like this:
$say
class MyClass { public $say; }
It is instead a local variable of the function Talk(). If you want to access it the way that you have the class defined, you would do:
Talk()
$instance = new MyClass(); $instance->Talk();