Voting

: three minus zero?
(Example: nine)

The Note You're Voting On

cobrattila at gmail dot com
5 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