O'Reilly logo

PHP Application Development with NetBeans Beginner's Guide by M A Hossain Tonu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PHPDoc—commenting standard for PHP

PHPDoc is an adaptation of Javadoc for the PHP programming language. Since it is the standard for commenting the PHP code, it allows external document generators, such as phpDocumentor and ApiGen to generate HTML documentation for APIs. It helps a variety of IDEs, such as NetBeans, PhpStorm, Zend Studio, and Aptana Studio, to interpret variable types and provide improved code completion, type hinting, and debugging. According to PHPDoc, documentation is written using text blocks named DocBlock, which precede the element to be documented. As a way of describing programming constructs such as class, interface, functions, methods, and so on, tag annotations are used inside the DocBlock.

Example of a DocBlock

A DocBlock ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required