Name
dir
Synopsis
directory dir(stringpath
[, resourcecontext
])
Returns an instance of the directory
class initialized to the given
path
. You can use the read()
, rewind()
, and close()
methods on the object as equivalent
to the readdir()
, rewinddir()
, and closedir()
procedural functions.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.