class MyClass {
public $b = 1;
static public function method(MyClass $obj){
echo $obj->b; // 1
$obj->b = 2;
}
}
$obj = new MyClass();
MyClass::method($obj);
echo $obj->b; // 2
$object = new Class();
$thisobj = new self();
class class_a{
static function method(){
if(isset($this)) echo "true"; else echo "false";
}
}