note 89578 added to function.register-shutdown-function
| From: | cFreed at orange dot fr | Date: | Sat, 14 Mar 2009 17:36:35 +0000 |
| Subject: | note 89578 added to function.register-shutdown-function | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151950@lists.php.net to get a copy of this message | ||
May be obvious for most people, but I spent time to clearly understand something which is only
INDIRECTLY mentioned by the manual, so I hope this useful for someones.
Pay attention to the function prototype: the $function argument is a callback one (follow the link
for more information).
This means that you must write this argument differently depending on the $function context:
. function-name, as a string, when it is a built-in or user-defined function
. array(class-name, method-name), when it is an object method
----
Server IP: 69.147.83.197
Probable Submitter: 90.0.243.42
----
Manual Page -- http://www.php.net/manual/en/function.register-shutdown-function.php
Edit -- https://master.php.net/note/edit/89578
Del: integrated -- https://master.php.net/note/delete/89578/integrated
Del: useless -- https://master.php.net/note/delete/89578/useless
Del: bad code -- https://master.php.net/note/delete/89578/bad+code
Del: spam -- https://master.php.net/note/delete/89578/spam
Del: non-english -- https://master.php.net/note/delete/89578/non-english
Del: in docs -- https://master.php.net/note/delete/89578/in+docs
Del: other reasons-- https://master.php.net/note/delete/89578
Reject -- https://master.php.net/note/reject/89578
Search -- https://master.php.net/manage/user-notes.php