<?php class A { private $x = 1; public function get(){ return $this->x; } } class B { protected $y = 1; public function get(){ return $this->y; } } $a = unserialize('O:1:"A":1:{s:1:"x";s:5:"hello";}'); $b = unserialize('O:1:"B":1:{s:1:"y";s:5:"world";}'); var_dump($a->get()); var_dump($b->get());
You have javascript disabled. You will not be able to edit any code.