diff --git a/language/oop5/object-comparison.xml b/language/oop5/object-comparison.xml index 033b8b379d..5f3f8ac9ff 100644 --- a/language/oop5/object-comparison.xml +++ b/language/oop5/object-comparison.xml @@ -2,11 +2,6 @@ Comparing Objects - - In PHP 5, object comparison is more complicated than in PHP 4 and more - in accordance to what one will expect from an Object Oriented Language - (not that PHP 5 is such a language). - When using the comparison operator (==), object variables are compared in a simple manner, namely: Two object @@ -14,7 +9,7 @@ instances of the same class. - On the other hand, when using the identity operator (===), + When using the identity operator (===), object variables are identical if and only if they refer to the same instance of the same class.