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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
13 + 4 = ?
Subscribe to this entry?

 
 [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: Sat May 11 03:01:29 2024 UTC