Home php What is the REFLECTION API in PHP? Practical use

What is the REFLECTION API in PHP? Practical use

Author

Date

Category

reading the book of Koterov “PHP 7 in the script” met with the reflection API.
How reflections are working, it is written extremely available and understandable. But, there is not a single living example where it can be used in practice. So far, the only practical benefit I noted for myself is to generate documentation. But not only for this was created this mechanism?
How to junior with a sufficiently small experience of work is very interesting, in what cases are reflections are used when solving working tasks? I would like real, living examples.


Answer 1

Good article came out, describing the answer to my question with examples. I will leave here, maybe someone will come in handy https://habr.com/post/433266/

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions