What does this line of code do?
Posted: Wed Sep 23, 2009 10:22 am
I found this line of code, but I can't understand the syntax of it:
I read on the online documentation that the register_shutdown_function calls a shutdown function before the script ends; it's not the actual function that I have a problem with, but the syntax of the shutdown function between parenthesis:
What does that mean? What happens in this case when the register_shutdown_function is called? What function does it call? An array? I thank in advance anyone who is able to help.
Code: Select all
[color=#000080]register_shutdown_function([/color][color=#800000]array($this, 'close')[/color][color=#000080]);[/color]Code: Select all
[color=#800000]array($this, 'close')[/color]