Browse Source

Show classname

PEAR_1_4DEV
Marcus Boerger 23 years ago
parent
commit
afc15ffde9
  1. 3
      ext/spl/examples/directorytree.php
  2. 1
      ext/spl/examples/tree.php

3
ext/spl/examples/directorytree.php

@ -24,9 +24,10 @@ EOF;
$length = $argc > 3 ? $argv[3] : -1;
echo $argv[1]."\n";
foreach(new LimitIterator(new DirectoryTreeIterator($argv[1]), @$argv[2], $length) as $file) {
//foreach(new DirectoryTreeIterator($argv[1]) as $file) {
echo $file ."\n";
echo $file . "\n";
}
?>

1
ext/spl/examples/tree.php

@ -26,6 +26,7 @@ EOF;
exit(1);
}
echo $argv[1]."\n";
foreach(new DirectoryGraphIterator($argv[1]) as $file) {
echo $file . "\n";
}

Loading…
Cancel
Save