<?php function errorLogger($errno, $errstr, $errfile, $errline, $errcontext) { $errcontext['arg'] = 'bar'; } set_error_handler('errorLogger'); function argByRef(&$arg) { trigger_error('Error', E_USER_WARNING); print_r($arg); } $arg = 'foo'; argByRef($arg);
You have javascript disabled. You will not be able to edit any code.