SyntaxFix
Write A Post
Hire A Developer
Questions
First, don't declare variables using var, but
public $my_value;
Then you can access it using
$this->my_value;
and not
$this->$my_value;