Home > Article > Backend Development > Does php have reflection?
php has reflection, php has a complete reflection API, which adds the ability to introspect classes, interfaces, functions, methods and extensions; in addition, the reflection API provides methods to take out documents in functions, classes and methods Note.
#The operating environment of this article: Windows 7 system, PHP version 7.1, Dell G3 computer.
php Is there reflection?
PHP has a complete reflection API, adding the ability to introspect classes, interfaces, functions, methods and extensions. Additionally, the Reflection API provides methods to extract documentation comments from functions, classes, and methods.
Please note that some internal APIs are missing code required for reflection extensions to work. For example, a built-in PHP class may be missing data for a reflected property. These rare cases are considered bugs, however, and as such, they should be discovered and fixed.
PHP reflection official introduction:
https://www.php.net/manual/zh/book.reflection.php
Recommended learning: "PHP video tutorial"
The above is the detailed content of Does php have reflection?. For more information, please follow other related articles on the PHP Chinese website!