$file->hasNext()

Checks if there's a next sibling

  • return (boolean)

Example

$file = $page->file('myfile.pdf');

if($file->hasNext()) {
  echo 'Next file: ' . $file->next()->filename();
}

Is something missing or incorrect? Edit this page on Github…