我想知道,如果它確定,如果我存儲一組功能集成到這樣陣列的功能
$f = array(
'functions1' =>
array(
'somefunction',
array($this, 'someclassfunction'),
array($this, 'someotherfunction'),
),
'functions2' =>
array(
'somefunction',
array($this, 'someclassfunction'),
array($this, 'someotherfunction'),
),
...
);
一個陣列,後來喜歡稱他們爲:
foreach($f as $key => $func)
call_user_func($func)...
如果我做了print_r($f)
我從所有這些函數中獲得大量的變量。這是否會以某種方式影響性能?
請停止在標題中寫標籤。 – 2011-05-09 10:49:20