Re: PHP4: Using create_function to create an object method
| From: | Greg Donald | Date: | Thu, 23 Dec 2004 22:48:28 +0000 |
| Subject: | Re: PHP4: Using create_function to create an object method | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205110@lists.php.net to get a copy of this message | ||
On Thu, 23 Dec 2004 15:57:08 -0600, kermodebear@kermodebear.org
<kermodebear@kermodebear.org> wrote:
> but I did not see anything in the manual that explicitly states that this will
> not work.
create_function -- Create an anonymous (lambda-style) function
The keyword here is anonymous, as in 'not named'. The anonymous
function you create will have a name but it's not a name you can use,
it's just a randomly generated string for preventing naming
collisions. That's why you must access anonymous functions with a
variable.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/