<?php function argByRef(&$arg) { debugLogger(); print_r($arg); } function debugLogger() { $bt = debug_backtrace(); $bt[1]['args'][0] = 'bar'; } $arg = 'foo'; argByRef($arg);
You have javascript disabled. You will not be able to edit any code.