rfc:streamline-phar-api
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:streamline-phar-api [2008/03/28 15:15] – Adding the list of cointributors to this proposal lstrojny | rfc:streamline-phar-api [2008/03/28 15:17] – Adding directory iterator adjustments lstrojny | ||
---|---|---|---|
Line 103: | Line 103: | ||
$file-> | $file-> | ||
$file-> | $file-> | ||
+ | </ | ||
+ | |||
+ | ==== DirectoryIterator ==== | ||
+ | === Implement DirectoryIterator === | ||
+ | Let DirectoryIterator implement the ArrayAccess interface. By accessing an array index of a directory iterator, the related SplFileInfo object is returned. | ||
+ | === Code === | ||
+ | <code php> | ||
+ | $iterator = new DirectoryIterator(__DIR__); | ||
+ | $file = $iterator[' | ||
</ | </ |
rfc/streamline-phar-api.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1