0) $prev = $folders[$index - 1]; if ($index < count($folders) - 1) $next = $folders[$index + 1]; } ?>