Metadata/Attributes in PHP


Metadata/Attributes in PHP

PHP has no built-in mechanism for declaring attributes, but it does have a primitive retrospection capability. For any class or function in PHP, there are a set of functions that you can call that will provide information about the class. For instance, with methods, you can get it’s parameters and any associated block of comments

Related Posts