The PHP manual rather helpfully states
sic. But gives no example.
How exactly does this work. I use shutdown function to wrap up errors from various classes something like this.
But rather than using global, how would class objects be passed as a parameter?
I could guess, but maybe somebody already knows the answer.
Thanks
It is possible to pass parameters to the shutdown function by passing additional parameters.
How exactly does this work. I use shutdown function to wrap up errors from various classes something like this.
Code:
function shutdownFunc()
{
global $errorobj;
global $mydb;
if(is_object($mydb)) {disconnectDB($mydb,$errorobj)};
}
I could guess, but maybe somebody already knows the answer.
Thanks
Comment