php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80196 Hard to find documentation on argument unpacking
Submitted: 2020-10-07 10:18 UTC Modified: -
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: yohan at ylab dot nl Assigned:
Status: Open Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yohan at ylab dot nl
New email:
PHP Version: OS:

 

 [2020-10-07 10:18 UTC] yohan at ylab dot nl
Description:
------------
I find it hard to find reference documentation on argument unpacking, aka the spread operator, aka the splat operator, aka the ... operator, aka the ... token.

It's mentioned as new feature on several places: 

https://www.php.net/manual/en/migration56.new-features.php
https://www.php.net/manual/en/migration74.new-features.php
https://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list.new

I would appreciate a complete reference page on argument unpacking, with examples and version info (comparable to https://www.php.net/manual/en/language.operators.errorcontrol.php).


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 14:01:33 2024 UTC