Re: Function as Parameter...

From: Date: Wed, 09 Aug 2000 12:28:26 +0000
Subject: Re: Function as Parameter...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-10909@lists.php.net to get a copy of this message
.. okay, thats it. Thanx ! Regards Martin Juri Smarschevski wrote: > > -----Original Message----- > > From: Martin [mailto:martin@thomatechnik.de] > > Sent: Wednesday, August 09, 2000 2:09 PM > > > > Hello ! > Hi Martin, > > > Is there anyway to give a (pointer to a) function to another > > function ? > > > > I want something like: > > > > function callExtraFunction($funktion) > > { # Here, the "$funktion" should be called; > > } > > > > function MyFunc1() > > { print "1"; > > } > > > > function MyFunc2() > > { print "2"; > > } > > > > So when I call callExtraFunction(MyFunc1); the output should be 1. Any > > adeas ? > > function callExtraFunction($funktion) > { # Here, the "$funktion" should be called; > eval ($funktion); > } > > have a look to: > http://www.php.net/manual/function.eval.php > > Regards, > Juri > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#10909) next »