Previous Up Next
Source code for sample2.php phpDocumentor Quickstart phpDocumentor Tutorial

Source code for sample3.php

phpDocumentor for newbies tutorial

Gregory Beaver

sample3.php

  1. <?php
  2. /**
  3.  * Sample File 3, phpDocumentor Quickstart
  4.  * 
  5.  * This file demonstrates the use of the @name tag
  6.  * @author Greg Beaver <[email protected]>
  7.  * @version 1.0
  8.  * @package sample
  9.  */
  10. /**
  11.  * Special global variable declaration DocBlock
  12.  * @global integer $GLOBALS['_myvar'] 
  13.  */ 
  14. $GLOBALS['_myvar'6;
  15. /**
  16.  * Notice that the @name tag does not validate what you give it!
  17.  * @global string $GLOBALS['turkey'] 
  18.  * @name $turkify
  19.  */ 
  20. $GLOBALS['turkey''tester';
  21. /**
  22.  * Sample function @global usage
  23.  * 
  24.  * Note that the $turkey variable is not linked to its documentation at
  25.  * {@link $turkify} because of the improper @name tag
  26.  * @global integer 
  27.  * @global string this one has the optional description
  28.  */
  29. function testit()
  30. {
  31.     global $_myvar$turkey;
  32. }
  33. ?>

Previous Up Next
Source code for sample2.php phpDocumentor Quickstart phpDocumentor Tutorial

Documentation generated on Mon, 05 Dec 2011 21:12:58 -0600 by phpDocumentor 1.4.4