摘要: 基本思想:通过PHP的__call方法把要操作的内容保存起来,最后一步操作时执行。知道这个思想,很快就可以搭建出这样的程序:<?phpclass Test{ protected $options = array(); public function __call($method,$args){ if(in_array($method,array('where','data','add'))){ $this->options[] = $args[0]; }else{ echo '您所操作的方法'.$method.' 阅读全文
posted @ 2011-06-07 22:36 策马江湖 阅读(485) 评论(1) 推荐(1) 编辑