I was wondering if it's OK if I store a set of functions into a array like this
$f = array(
'functions1' =>
array(
'somefunction',
array($this, 'someclassfunction'),
array($this, 'someotherfunction'),
),
'functions2' =>
array(
'somefunction',
array($this, 'someclassfunction'),
array($this, 'someotherfunction'),
),
...
);
and call them later like:
foreach($f as $key => $func)
call_user_func($func)...
If I do a print_r($f) I get a huge array with lots variables from all these functions. Does this affect performance somehow?