Q. What will be the output?
Code:
class A { private $x = 5; }
$obj = new A();
echo $obj->x;
β
Correct Answer: (B)
Error
Explanation: Private property not accessible outside class.