Hi CHU Zhaowei
2017-10-22 7:24 GMT+02:00 CHU Zhaowei :
> Hello Sammy,
>
>
> I'd like to know if a trailing comma would affect the number of args or not.
> for example,
> ```
> function foo(){
> return func_num_args();
>
> }
> foo('a','b',);
> ```
> would return 2 or 3?
With the current patch s
From: "Sammy Kaye Powers";
Date: Sun, Oct 22, 2017 02:36 AM
To: "PHP Internals";
Subject: [PHP-DEV] [VOTE] Allow a trailing comma in function calls
Hi internalsland!
Seeing that the mandatory two-week discussion period has completed and
there are no open questions,
Hi internalsland!
Seeing that the mandatory two-week discussion period has completed and
there are no open questions, the RFC to allow a trailing comma in
function calls in PHP 7.3 is up for vote.
https://wiki.php.net/rfc/trailing-comma-function-calls
As this is a change to the language syntax,