Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPImpact Blog:
Using Annotations in PHP
Jul 22, 2008 @ 12:55:04

On the PHP::Impact blog today there's a new post showing how to use annotations in your application's code that can be used by the Addendum library.

Annotations provide data about a program that is not part of the program itself. They have no direct effect on the operation of the code they annotate. In PHP, annotations can only be read reflectively at run time.

They allow you to document, with meta-data, information about the classes, methods and variables inside the script. They show three of the annotation types - a marker, a single-value and a multi-value.

tagged: annotations addendum library marker singlevalue multivalue

Link:


Trending Topics: