wiki/content/20201112113236-trailing_comma_in_parameter_lists.md

328 B

id title
4bf0a31f-50eb-4b42-8d5d-54e6777147a4 Trailing Comma in Parameter Lists

Description

PHP8 allows trailing commas1 to bue used in parameters lists.

Syntax

function tralala(string $a, string $b, string $c,) {}

Footnotes