Name Description Equals(Object) Determines whether the specified object is equal to the current object. Equals(Object, Object) Determines whether the specified object instances are considered equal. Finalize Allows an object to try to free resources…
Fatal error: Using $this when not in object context in 解决方法 粗心造成的错误 $this 只存在于下面情况 $obj = new objectTest(); $obj->test(); 这种方法调用时,class中可以使用$this调用类中函数. 假如: objectTest::test(); 这种方法调用时,是不存在$this的,可以用self::来调用类中函数.…
参考copy链接:http://blog.csdn.net/bigconvience/article/details/25025561 在看原型模式,发现要用到clone这个方法,以前和朋友聊过,没怎么看过,刚好要用,就看看了. 源码解释: /** * Creates and returns a copy of this object. The precise meaning * of "copy" may depend on the class of the object. The…