I\'ve been wondering whether is possible or not to pass a function as parameter in PHP; I want something like when you\'re programming in JS:
object.exampleM
Just to add to the others, you can pass a function name:
function someFunc($a) { echo $a; } function callFunc($name) { $name('funky!'); } callFunc('someFunc');
This will work in PHP4.