summaryrefslogtreecommitdiff
path: root/ext/spl/examples/tree.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-08-14 21:14:04 +0000
committerMarcus Boerger <helly@php.net>2003-08-14 21:14:04 +0000
commit175c25c2a8a63129f8eda39b67b1c97f80fb1030 (patch)
treeba1bd1b3fee3dd50e6f90400b9f0a85fd2672df6 /ext/spl/examples/tree.php
parent29c434b4b7752cb252030dd993fc3b6474739bca (diff)
downloadphp-git-175c25c2a8a63129f8eda39b67b1c97f80fb1030.tar.gz
Add 'graphical' tree mode
Diffstat (limited to 'ext/spl/examples/tree.php')
-rwxr-xr-xext/spl/examples/tree.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/examples/tree.php b/ext/spl/examples/tree.php
index d5f54c3354..a0149bc18d 100755
--- a/ext/spl/examples/tree.php
+++ b/ext/spl/examples/tree.php
@@ -11,7 +11,7 @@
require_once("sub_dir.inc");
-foreach(new sub_dir($argv[1]) as $f) {
+foreach(new sub_dir($argv[1], true, isset($argv[1]) ? $argv[1] : false) as $f) {
echo "$f\n";
}