Doc #80196 [Com]: Hard to find documentation on argument unpacking

From: Date: Wed, 10 Jul 2024 05:53:11 +0000
Subject: Doc #80196 [Com]: Hard to find documentation on argument unpacking
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-19725@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80196&edit=1

 ID:                 80196
 Comment by:         krina234pestro at outlook dot com
 Reported by:        yohan at ylab dot nl
 Summary:            Hard to find documentation on argument unpacking
 Status:             Open
 Type:               Documentation Problem
 Package:            Documentation problem
 Operating System:   Irrelevant
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

This feature is particularly useful when you have a list of arguments in an array and you want to
pass them to a function without manually indexing each
element.(https://github.com)(https://www-lhiproviderportal.com)


Previous Comments:
------------------------------------------------------------------------
[2020-10-07 10:18:08] 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).



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80196&edit=1


Thread (3 messages)

« previous php.doc.bugs (#19725) next »