cvs: phpdoc-zh /language/oop5 object-comparison.xml overloading.xml

From: Date: Mon, 18 Oct 2004 09:44:06 +0000
Subject: cvs: phpdoc-zh /language/oop5 object-comparison.xml overloading.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1900@lists.php.net to get a copy of this message
avenger Mon Oct 18 05:44:06 2004 EDT Modified files: /phpdoc-zh/language/oop5 object-comparison.xml overloading.xml Log: first commit http://cvs.php.net/diff.php/phpdoc-zh/language/oop5/object-comparison.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/language/oop5/object-comparison.xml diff -u phpdoc-zh/language/oop5/object-comparison.xml:1.1 phpdoc-zh/language/oop5/object-comparison.xml:1.2 --- phpdoc-zh/language/oop5/object-comparison.xml:1.1 Fri Jul 16 14:57:18 2004 +++ phpdoc-zh/language/oop5/object-comparison.xml Mon Oct 18 05:44:06 2004 @@ -1,9 +1,9 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.2 $ --> <sect1 id="language.oop5.object-comparison"> - <title>Comparing objects</title> + <title>¶ÔÏóµÄ±È½Ï</title> <para> - In PHP 5, object comparison is a more complicated than in PHP 4 and more + ÔÚ PHP 5 ÖУ¬object comparison is a 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). </para> @@ -14,14 +14,14 @@ instances of the same class. </para> <para> - On the other hand, when using the identity operator (<literal>===</literal>), + ÁíÍâÒ»µã£¬when using the identity operator (<literal>===</literal>), object variables are identical if and only if they refer to the same instance of the same class. </para> <para> - An example will clarify these rules. + ÏÂÃæµÄÀý×Ó»áÇå³þµÄ˵Ã÷ÉÏÃæµÄ¹æÔò¡£ <example> - <title>Example of object comparison in PHP 5</title> + <title>PHP 5ÖжÔÏó±È½ÏµÄÀý×Ó</title> <programlisting role='php'> <![CDATA[ <?php @@ -73,7 +73,7 @@ ]]> </programlisting> </example> - This example will output: + ÉÏÃæÀý×ÓµÄÊä³ö½á¹û£º <screen> Two instances of the same class o1 == o2 : TRUE http://cvs.php.net/diff.php/phpdoc-zh/language/oop5/overloading.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/language/oop5/overloading.xml diff -u phpdoc-zh/language/oop5/overloading.xml:1.1 phpdoc-zh/language/oop5/overloading.xml:1.2 --- phpdoc-zh/language/oop5/overloading.xml:1.1 Fri Jul 16 14:57:18 2004 +++ phpdoc-zh/language/oop5/overloading.xml Mon Oct 18 05:44:06 2004 @@ -1,7 +1,7 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.2 $ --> <sect1 id="language.oop5.overloading"> - <title>Overloading</title> + <title>ÖØÔØ(Overloading)</title> <para> . </para>

« previous php.doc.zh (#1900) next »