PHP5 has a complete reflection API to add reverse engineering capabilities for classes, interfaces, functions, methods, and extensions. What is reflection? It refers to the extension analysis of PHP programs in the PHP running state, exporting or
*Reflection is an API that manipulates the meta-model of an object-oriented paradigm and is powerful in helping us to build complex, scalable applications. The purpose is to automatically load plugins, automatically generate documents, and even to
Atitit. Improve api compatibility and enhance java c #. Net php js,
Atitit. Improve api compatibility and enhance java c #. Net php js
1. What is reflection 1
1.1. Main functions provided by reflection: 2
1.2. reflection process: 2
2. required
Explain the php Reflection applications and php Reflection applications. Php Reflection application, php Reflection application reflection is in the PHP running state, extension analysis PHP program, export or extract detailed information about
Detailed application of reflection in PHP, detailed PHP reflection application
Reflection is in PHP running state, extending the parsing PHP program, exporting or extracting detailed information about classes, methods, properties, parameters, etc.,
This article mainly introduced the PHP reflection mechanism principle and usage, combined with the example form analysis PHP reflection mechanism principle, the usage and the related attention matters, the need friend can refer to the next
This
PHP reflection API and PHP reflection API
PHP reflection API, that is, when PHP is running, you can analyze the PHP program to export the class, method, attribute, parameter, and other information of the object.
How to Use the reflection API
Recently in the development process need to get a class method of the number of parameters, name and parameter order, based on the name of the parameter from the $_get value.
If the method prototype is test ($uid, $score), then I know that it needs
This article mainly introduced the PHP reflection mechanism principle and usage, combined with the example form analysis PHP reflection mechanism principle, the usage and the related attention matters, the need friend can refer to the next
This
Recently, in the development process, we need to get the parameter number, name and parameter order of a class method, so that we can take the value from $_get according to the name of the parameter.
If the method prototype is test ($uid, $score),
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.