I can\'t seem to find anything of this, and was wondering if it\'s possible to store a function or function reference as a value for an array element. For e.g.
PHP supports the concept of variable functions, so you can do something like this:
function foo() { echo "bar"; } $array = array('fun' => 'foo'); $array['fun']();
Yout can check more examples in manual.