mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Remove obsolete PHP 4 info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344801 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b963543d8c
commit
35e70db263
1 changed files with 4 additions and 5 deletions
|
@ -508,7 +508,7 @@ $b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!";
|
|||
</para>
|
||||
<para>
|
||||
An exception to the usual assignment by value behaviour within PHP occurs
|
||||
with <type>object</type>s, which are assigned by reference in PHP 5.
|
||||
with <type>object</type>s, which are assigned by reference.
|
||||
Objects may be explicitly copied via the <link
|
||||
linkend="language.oop5.cloning">clone</link> keyword.
|
||||
</para>
|
||||
|
@ -544,7 +544,7 @@ print "$b\n"; // prints 4 as well, since $b is a reference to $a, which has
|
|||
</example>
|
||||
</para>
|
||||
<para>
|
||||
As of PHP 5, the <link linkend="language.oop5.basic.new">new</link>
|
||||
The <link linkend="language.oop5.basic.new">new</link>
|
||||
operator returns a reference automatically, so assigning the result of
|
||||
<link linkend="language.oop5.basic.new">new</link> by reference results
|
||||
in an <constant>E_DEPRECATED</constant> message in PHP 5.3 and later, and
|
||||
|
@ -1435,9 +1435,8 @@ echo $a <=> $b; // 1
|
|||
<entry><type>object</type></entry>
|
||||
<entry><type>object</type></entry>
|
||||
<entry>Built-in classes can define its own comparison, different classes
|
||||
are uncomparable, same class - compare properties the same way as
|
||||
arrays (PHP 4), PHP 5 has its own <link
|
||||
linkend="language.oop5.object-comparison">explanation</link>
|
||||
are uncomparable, same class see <link
|
||||
linkend="language.oop5.object-comparison">Object Comparison</link>
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
|
Loading…
Reference in a new issue