Ellipsis before parameter variable PHP Laravel - development

Ellipsis before parameter variable PHP Laravel

Was going through Laravel Illuminate core when I met this code..What’s does the ellipsis before parameter $guards mean?

public function handle($request,Closure $next,...$guards){
    $this->authenticate($guards);
    return $next($request);
}



from Laravel Questions and Answers https://laravelquestions.com/php/ellipsis-before-parameter-variable-php-laravel/
via Lzo Media

Comments

Popular posts from this blog

HTTP 401 Unable to create record Twillio PHP sdk 5.16 - development

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-include of inline SVG does not display gradient except in Chrome