Re: Redeclare a Function
| From: | Yasuo Ohgaki | Date: | Wed, 14 Nov 2001 15:40:49 +0000 |
| Subject: | Re: Redeclare a Function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74609@lists.php.net to get a copy of this message | ||
Joffrey Van Wageningen wrote:
its possible to create lambda-style functions with create_function() and redeclare the variable functions --- $funct = create_function('$x', 'return ++$x;'); echo $funct(10); $funct = create_function('$x', 'return --$x;'); echo $funct(10); --- its fun to create array's of functions :) try it :P with kind regards, Joffrey van WageningenAPD can rename/redeclare functions also. http://apd.communityconnect.com/ -- Yasuo Ohgaki