summaryrefslogtreecommitdiff
path: root/ext/spl/examples/tree.php
blob: d5f54c3354b0f3c3d6132853cec1c99ea09b3434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

/* tree view example
 *
 * Usage: php tree.php <path>
 *
 * Simply specify the path to tree with parameter <path>.
 *
 * (c) Marcus Boerger
 */

require_once("sub_dir.inc");

foreach(new sub_dir($argv[1]) as $f) {
	echo "$f\n";
}

?>