If you want to get the arguments by reference, instead of func_get_args() you can simply use<?phpfunction 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