')); foreach (explode('&', $url['query']) as $query_param) { # Grab the ID query parameters from the link. if (strpos($query_param, 'max_id=') === 0 || strpos($query_param, 'since_id=') === 0) { # Construct new links with the correct offset. $this->{$link['rel']} = route($route) . '?' . $query_param; } } } } } }