Answer the question
In order to leave comments, you need to log in
Can I somehow find out during debugging which field is public, which is private, which is protected?
Hello. There is this code:
class A {
public $public_field = 1;
protected $protected_field = 2;
private $private_field = 3;
}
$a = new A();
$stop = 1;
$stop = 1;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question