Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php pass a function as a parameter

function someFunc($a)
{
    echo $a;
}

function callFunc($name)
{
    $name('funky!');
}

callFunc('someFunc');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #pass #function #parameter
ADD COMMENT
Topic
Name
5+3 =