W
W
WQP2017-01-02 19:59:32
PHP
WQP, 2017-01-02 19:59:32

Is it possible to get a public variable without initializing the class itself?

Actually the whole question in the header

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
index0h, 2017-01-02
@index0h

no, as long as it's not static

Y
Yuri, 2017-01-02
@riky

Is it possible through reflection,
php.net/manual/ru/reflectionproperty.getvalue.php
Do I need to explain that this is not true?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question