<?php class myPHP5Class { public $my_variable; public function my_method($param) { echo "called my_method($param)!\n"; echo "my variable is: "; echo "{$this->my_variable}\n"; } } ?>