Function as Parameter...

From: Date: Wed, 09 Aug 2000 12:08:35 +0000
Subject: Function as Parameter...
Groups: php.general 
Request: Send a blank email to php-general+get-10903@lists.php.net to get a copy of this message
Hello ! 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 ? Regards Martin

« previous php.general (#10903) next »