I have the following class and its not accepting $this keyword in the method. can someone guid
<?php
class test {
function __construct($x, $y, $z){
$this->$x = $x;
$this->testFunction();
public static function testFunction(){
print '<br> here it is:'.$this->$x.'--<br>';
}
//========================================================================================================================
}
?>
it gives me this error
Fatal error: Using $this when not in object context