|  | 
 
| 140字的框架:非常巧妙了 ////////////////////////////////////
 
 PHP复制代码 复制代码require __DIR__.'/c.php';
if (!is_callable($c = @$_GET['c']  ?: function() { echo 'Woah!'; }))
  throw new  Exception('Error');
$c();介绍:http://twitto.org/
 ///////////////////////////////////////
 
 140字的依赖注入容器:
 
 PHP复制代码 复制代码class Container {
 protected $s=array();
 function  __set($k, $c) { $this->s[$k]=$c; }
 function  __get($k) { return $this->s[$k]($this); }
}介绍:http://twittee.org/
 哪位能告诉我,return $this->s[$k]($this)最后的($this)是什么意思?
 
 外国人怎么这么有钱呢?一个小东西,还得买个域名,不便宜啊。
 好像是投资域名吧,名字都很好呢。
 | 
 |