note 100700 added to function.call-user-func
| From: | can dot acar at windowslive dot com | Date: | Mon, 01 Nov 2010 07:16:13 +0000 |
| Subject: | note 100700 added to function.call-user-func | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173634@lists.php.net to get a copy of this message | ||
function modul_register($where, $function)
{
global $modul;
$modul[$where][$function] = array('function' => $function);
return;
}
function modul_add($where, $function)
{
return modul_register($where, $function);
}
function modul_action($tag)
{
global $modul;
if (!isset($modul[$tag])) {
return;
}
foreach ((array )$modul[$tag] as $the_) {
call_user_func($the_['function'], $tag);
}
}
////////////////////////
function Test()
{
echo "Test function called";
}
modul_add("template.foo","Test");
/////////////////
modul_action("template.foo");
----
Server IP: 160.75.100.7
Probable Submitter: 212.174.46.152
----
Manual Page -- http://www.php.net/manual/en/function.call-user-func.php
Edit -- https://master.php.net/note/edit/100700
Del: integrated -- https://master.php.net/note/delete/100700/integrated
Del: useless -- https://master.php.net/note/delete/100700/useless
Del: bad code -- https://master.php.net/note/delete/100700/bad+code
Del: spam -- https://master.php.net/note/delete/100700/spam
Del: non-english -- https://master.php.net/note/delete/100700/non-english
Del: in docs -- https://master.php.net/note/delete/100700/in+docs
Del: other reasons-- https://master.php.net/note/delete/100700
Reject -- https://master.php.net/note/reject/100700
Search -- https://master.php.net/manage/user-notes.php