List Info

Thread: note 68489 added to function.directoryiterator-construct




note 68489 added to function.directoryiterator-construct
user name
2006-07-29 05:48:14
In response to the comment below, you don't have to
simulate a foreach(), DirectoryIterator obviously inherits
SPL's Iterator interface, therefore:

<?php
$dir = new DirectoryIterator("/tmp");
foreach ($dir as $file) {
    if ($dir->isDot()) {
        continue;
    }
    echo $file . "\n";
}
?>
----
Server IP: 193.27.201.10 (proxied: 193.27.201.10 1.0
www1.shellkonto.se:3128 (squid/2.5.STABLE4))
Probable Submitter: 80.217.189.168
----
X-Spam-Status: No, hits=3.1 required=5.0
tests=DATE_MISSING,FROM_NO_LOWER 
	autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.direc
toryiterator-construct.php
Edit        -- http://master.p
hp.net/note/edit/68489
Del: integrated  -- ht
tp://master.php.net/note/delete/68489/integrated
Del: useless     -- http:
//master.php.net/note/delete/68489/useless
Del: bad code    -- http
://master.php.net/note/delete/68489/bad+code
Del: spam        -- http://m
aster.php.net/note/delete/68489/spam
Del: non-english -- h
ttp://master.php.net/note/delete/68489/non-english
Del: in docs     -- http:
//master.php.net/note/delete/68489/in+docs
Del: other reasons-- http://master
.php.net/note/delete/68489
Reject      -- http://master
.php.net/note/reject/68489
Search      -- http://ma
ster.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )