note 84847 rejected from functions.arguments by danbrown

From: Date: Fri, 01 Aug 2008 20:36:38 +0000
Subject: note 84847 rejected from functions.arguments by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-143031@lists.php.net to get a copy of this message
Note Submitter: migran at gmail dot com ---- Hi Can i have function as an argument for another function? And what is the solution in this case e.g. i want to have function numerical integrator being able to integrate different functions... something like: <?php echo 'look here>>>', myzed(4), mama(myzed); function mama(func($a)) { global func echo func(4); } function myzed($z) { global $omega; echo $omega*$z; } ?>

« previous php.notes (#143031) next »