PHP » GoLang |
login |
register |
about
|
GoLang streamWrapper::dir_readdir
request it (341)
GoLang replacement for PHP's streamWrapper::dir_readdir
[edit | history]
PHP streamWrapper::dir_readdirPHP original manual for streamWrapper::dir_readdir [ show | php.net ]streamWrapper::dir_readdir(PHP 4 >= 4.3.2, PHP 5, PHP 7) streamWrapper::dir_readdir — Read entry from directory handle Description
public string streamWrapper::dir_readdir
( void
)
This method is called in response to readdir(). ParametersThis function has no parameters. Return Values
Should return string representing the next filename, or
Errors/ExceptionsEmits
Examples
Example #1 Listing files from tar archives
<?php The above example will output something similar to: string(13) "construct.xml" string(16) "dir-closedir.xml" string(15) "dir-opendir.xml" string(15) "dir-readdir.xml" string(17) "dir-rewinddir.xml" string(9) "mkdir.xml" string(10) "rename.xml" string(9) "rmdir.xml" string(15) "stream-cast.xml" string(16) "stream-close.xml" string(14) "stream-eof.xml" string(16) "stream-flush.xml" string(15) "stream-lock.xml" string(15) "stream-open.xml" string(15) "stream-read.xml" string(15) "stream-seek.xml" string(21) "stream-set-option.xml" string(15) "stream-stat.xml" string(15) "stream-tell.xml" string(16) "stream-write.xml" string(10) "unlink.xml" string(12) "url-stat.xml" Rewinding.. string(13) "construct.xml" |
more
Recently updated
more
Most requested
more
Last requests
|