note 52036 added to class.dir
| From: | scott at slerman dot net | Date: | Tue, 19 Apr 2005 18:15:35 +0000 |
| Subject: | note 52036 added to class.dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88220@lists.php.net to get a copy of this message | ||
The documentation here is rather confusing, at least to me. My initial understanding was that
'dir' was a class and that objects should be created in the normal way ($d = new
dir("path")). Apparently this isn't the case though. As the example shows, dir() is a
normal function that returns an object of type Directory. The description of dir() could be a little
clearer about this.
----
Manual Page -- http://www.php.net/manual/en/class.dir.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52036
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52036&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52036&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52036&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52036&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52036&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52036&report=yes
Search -- http://master.php.net/manage/user-notes.php