6
You can access all your settings inside the class (estates) without having their names?
For example, if I create an instance of a class $classe = new Classe()
, and I’m defining things in her:
$classe->ComprarFile = true;
$classe->comidaDoCachorro = false;
$classe->valorDoDolar = '50 reais';
It would be possible to access these properties in the class without knowing their name?
can do this within the class itself?
– Elaine
Yes, you can. The example I used was taken from the documentation page that does just that. He uses the
$this
. Just be careful not to use an unnecessary and conceptually wrong resource.– Maniero