PHP框架的Controller
时间:2011-02-15 来源:李惟
<?php
function boot($func) {
$context = array();
while ($func = $func($context)) {
;
}
}
boot(function(&$context) {
$context[] = 'A';
return function(&$context) {
$context[] = 'B';
return function(&$context) {
$context[] = 'C';
return function(&$context) {
var_dump($context);
};
};
};
});
?>
以上就是个概念骨架了
相关阅读 更多 +
排行榜 更多 +










