FilesystemIterator::next Move to the next file &reftitle.description; public voidFilesystemIterator::next Move to the next file. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; &return.void; &reftitle.examples; <methodname>FilesystemIterator::next</methodname> example List the contents of a directory using a while loop. valid()) { echo $iterator->getFilename() . "\n"; $iterator->next(); } ?> ]]> &example.outputs.similar; &reftitle.seealso; DirectoryIterator::next