Hi guys,
What is the purpose of phpdoc?
Thanks
| SitePoint Sponsor |



Hi guys,
What is the purpose of phpdoc?
Thanks
Michael Laddie
Durham based Web Developer




Generating code documentation from comments. You comment your code using a modified comment syntax and special phpdoc tags:
and then run phpdoc to generate a documentation in various formats (PDF, HTML, Windows Help, and many more).PHP Code:/**
* Some func
*
* Longer description
*
* @param string $in Input string
* @return string Output string
*/
function do_something($in) {
// do something
return $out;
}
Pawel Decowski (you should follow me on Twitter)
It also allows the better IDEs out there to provide type hinting as you code.
Very useful.
@AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.




Pawel Decowski (you should follow me on Twitter)



ah, thanks guys.
Michael Laddie
Durham based Web Developer
Bookmarks