1. Go to this page and download the library: Download antikirra/find library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
antikirra / find example snippets
use Antikirra\Find\Find;
r');
$iterator = $finder->find(function (SplFileInfo $fileInfo) {
return $fileInfo->getSize() === 0 ? $fileInfo : null;
});
foreach ($iterator as $realPath => $fileInfo) {
// do stuff
}