Re: [PHP] question on order of variables passed to a function

2005-08-23 Thread Jasper Bryant-Greene
Vidyut Luther wrote: and then: trigger_error("log(x) for x <= 0 is undefined, you used: scale = $scale", E_USER_ERROR); ?> So, wouldn't this make $errno in the "myErrorHandler" be "log (x) " rather than E_USER_ERROR ? No, because you're calling trigger_error, not myErrorHandler. The

[PHP] question on order of variables passed to a function

2005-08-23 Thread Vidyut Luther
I'm writing a error handler for my scripts, so I went to : http:// us3.php.net/manual/en/function.set-error-handler.php I noticed something in the example 1 given there. and then: trigger_error("log(x) for x <= 0 is undefined, you used: scale = $scale", E_USER_ERROR); ?> So, wouldn't this