You canโt, you just canโt tell php that itโs a link, but itโs not, but! I recommend doing the following:
function foo() { $arg = func_get_arg(0); $arg->val += 10; } $a =new stdClass(); $a->val = 100; foo($a); echo "$a\n";
you can apply the box to the desired value and it works. I hope you find it useful, if you have any questions, please ask.
Hilmi source share