update page now
PHP 8.1.34 Released!

Voting

: nine minus eight?
(Example: nine)

The Note You're Voting On

cobrattila at gmail dot com
6 years ago
If you want to get the arguments by reference, instead of func_get_args() you can simply use

<?php
function args_byref(&...$args) {
    // Modify the $args array here
}
?>

Credits should go to Markus Malkusch for pointing this out on Stackoverflow.
https://stackoverflow.com/a/29181826/1426064

<< Back to user notes page

To Top