php实现单件模式总结(持续更新)
摘要:        
function &getInstance() {		static $instance = array();		if (!$instance) { //instance数组为空,所以为!false			$instance[0] =& new Cache();		}		return $instance[0];	}	private static $instance = null;	fu...    阅读全文
        posted @ 2010-03-11 23:43 flyingchen 阅读(272) 评论(0) 推荐(0)
                    
                
浙公网安备 33010602011771号