$file->next()
Returns the next sibling
-
return ($file)
Example
if($next = $page->file('myfile.pdf')->next()) {
echo 'Next file: ' . $next->filename();
}
Returns the next sibling
if($next = $page->file('myfile.pdf')->next()) {
echo 'Next file: ' . $next->filename();
}