note 84847 added to functions.arguments
| From: | migran at gmail dot com | Date: | Fri, 01 Aug 2008 20:23:54 +0000 |
| Subject: | note 84847 added to functions.arguments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143028@lists.php.net to get a copy of this message | ||
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;
}
?>
----
Server IP: 92.48.100.16
Probable Submitter: 163.1.19.88
----
Manual Page -- http://www.php.net/manual/en/functions.arguments.php
Edit -- https://master.php.net/note/edit/84847
Del: integrated -- https://master.php.net/note/delete/84847/integrated
Del: useless -- https://master.php.net/note/delete/84847/useless
Del: bad code -- https://master.php.net/note/delete/84847/bad+code
Del: spam -- https://master.php.net/note/delete/84847/spam
Del: non-english -- https://master.php.net/note/delete/84847/non-english
Del: in docs -- https://master.php.net/note/delete/84847/in+docs
Del: other reasons-- https://master.php.net/note/delete/84847
Reject -- https://master.php.net/note/reject/84847
Search -- https://master.php.net/manage/user-notes.php