Home  >  Article  >  Backend Development  >  Does php have reflection?

Does php have reflection?

藏色散人
藏色散人Original
2022-01-04 10:06:211833browse

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.

Does php have reflection?

#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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn