wiki/content/20201112113236-trailing_comma_in_parameter_lists.md

20 lines
345 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-29 18:27:12 +00:00
date: 2020-11-12
2024-05-06 20:40:05 +00:00
id: 4bf0a31f-50eb-4b42-8d5d-54e6777147a4
title: Trailing Comma in Parameter Lists
---
# Description
PHP8 allows trailing commas[^1] to bue used in parameters lists.
# Syntax
``` php
function tralala(string $a, string $b, string $c,) {}
```
# Footnotes
[^1]: <https://wiki.php.net/rfc/trailing_comma_in_parameter_list>