note 24371 added to function.create-function
| From: | listes at brissambre dot org | Date: | Wed, 14 Aug 2002 14:22:15 +0000 |
| Subject: | note 24371 added to function.create-function | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35000@lists.php.net to get a copy of this message | ||
Warning, it seems that you can't store such lambda functions in Sessions, because only the
function's name will be stored, not the function itself.
So don't save the function but only it's code and call create_function each time the
script is called.
--
http://www.php.net/manual/en/function.create-function.php
http://master.php.net/manage/user-notes.php?action=edit+24371
http://master.php.net/manage/user-notes.php?action=delete+24371
http://master.php.net/manage/user-notes.php?action=reject+24371