note 128270 added to directory.read
| From: | cjcxxh at 163 dot com | Date: | Thu, 02 Mar 2023 11:24:47 +0000 |
| Subject: | note 128270 added to directory.read | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220227@lists.php.net to get a copy of this message | ||
use
while ($row=$dir->read()){
// your code
}
to get a list of all files and directories. You can definitely use the "for" and other
loops.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 59.174.234.37)
----
Manual Page -- https://php.net/manual/en/directory.read.php
Edit -- https://main.php.net/note/edit/128270
Del: integrated -- https://main.php.net/note/delete/128270/integrated
Del: useless -- https://main.php.net/note/delete/128270/useless
Del: bad code -- https://main.php.net/note/delete/128270/bad+code
Del: spam -- https://main.php.net/note/delete/128270/spam
Del: non-english -- https://main.php.net/note/delete/128270/non-english
Del: in docs -- https://main.php.net/note/delete/128270/in+docs
Del: other reasons-- https://main.php.net/note/delete/128270
Reject -- https://main.php.net/note/reject/128270
Search -- https://main.php.net/manage/user-notes.php