Source for file global.php

Documentation is available at global.php


1 <?php
2 /**
3 * @package Examples
4 * @author Derick Rethans <derick@php.net>
5 */
6
7 /**
8 * This function rewinds a directory
9 */
10 function rewindDir() {
11 /**
12 * Global variable which holds the directory object
13 * @global object Dir $dir Instance of class Dir
14 */
15 global $dir
16
17 $dir->rewind();
18 }
19
20
21 /**
22 * Example to document a global variable
23 * @name $foo
24 * @global string $GLOBALS['foo']
25 */
26 $GLOBALS['foo'] = "Foobar";
27 ?>

Documentation generated on Tue, 18 Nov 2003 18:06:11 +0100 by phpDocumentor 1.2.2