Re: [PHP] Redeclare a Function
i recon this is a way too, the website does not support to much information about how to use a tool like APD. create_function is a php native function so support, stability and usability is much greater than a 3rd party Zend Extention in early beta :) with kind regards, Joffrey van Wageningen On Thu, 15 Nov 2001, Yasuo Ohgaki wrote: > 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 Wageningen > > > APD can rename/redeclare functions also. > > http://apd.communityconnect.com/ > > -- > Yasuo Ohgaki > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Redeclare a Function
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 Wageningen APD can rename/redeclare functions also. http://apd.communityconnect.com/ -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Redeclare a Function
Thanks Joffrey "You learn everyday" Michael >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 Wageningen > >On Tue, 13 Nov 2001, Andrey Hristov wrote: > > > I think it's not possible. > > > > Andrey Hristov > > IcyGEN Corporation > > http://www.icygen.com > > BALANCED SOLUTIONS > > > > > > ----- Original Message - > > From: "Michael Cronström" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, November 13, 2001 3:13 PM > > Subject: [PHP] Redeclare a Function > > > > > > Hi everybody, > > > > I would like to "declare/redeclare" a function twice in the same doc. Is it > > possible to "unset/undeclare" the function and include it again a second > > time? I have searched the manual but can´t find anything useful, any ideas? > > > > TIA > > Michael > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Redeclare a Function
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 Wageningen On Tue, 13 Nov 2001, Andrey Hristov wrote: > I think it's not possible. > > Andrey Hristov > IcyGEN Corporation > http://www.icygen.com > BALANCED SOLUTIONS > > > - Original Message - > From: "Michael Cronström" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, November 13, 2001 3:13 PM > Subject: [PHP] Redeclare a Function > > > Hi everybody, > > I would like to "declare/redeclare" a function twice in the same doc. Is it > possible to "unset/undeclare" the function and include it again a second > time? I have searched the manual but can´t find anything useful, any ideas? > > TIA > Michael > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Redeclare a Function
I think it's not possible. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Michael Cronström" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 3:13 PM Subject: [PHP] Redeclare a Function Hi everybody, I would like to "declare/redeclare" a function twice in the same doc. Is it possible to "unset/undeclare" the function and include it again a second time? I have searched the manual but can´t find anything useful, any ideas? TIA Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Redeclare a Function
Hi everybody, I would like to "declare/redeclare" a function twice in the same doc. Is it possible to "unset/undeclare" the function and include it again a second time? I have searched the manual but can´t find anything useful, any ideas? TIA Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]