So not to imply that php 5 no longer support this.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@162042 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Curt Zirzow 2004-06-25 03:09:00 +00:00
parent b577b1ba8b
commit ccca6049cf

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.70 $ -->
<!-- $Revision: 1.71 $ -->
<chapter id="language.operators">
<title>Operators</title>
<simpara>
@ -263,8 +263,8 @@ $b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!";
Note that the assignment copies the original variable to the new
one (assignment by value), so changes to one will not affect the
other. This may also have relevance if you need to copy something
like a large array inside a tight loop. PHP 4 supports assignment
by reference, using the <computeroutput>$var =
like a large array inside a tight loop. Since PHP 4, assignment
by reference has been supported, using the <computeroutput>$var =
&amp;$othervar;</computeroutput> syntax, but this is not possible
in PHP 3. 'Assignment by reference' means that both variables end
up pointing at the same data, and nothing is copied anywhere.
@ -384,7 +384,7 @@ echo "hallo" ^ "hello"; // Outputs the ascii values #0 #4 #0 #0 #0
<entry>Identical</entry>
<entry>
&true; if $a is equal to $b, and they are of the same
type. (PHP 4 only)
type. (introduced in PHP 4)
</entry>
</row>
<row>
@ -402,7 +402,7 @@ echo "hallo" ^ "hello"; // Outputs the ascii values #0 #4 #0 #0 #0
<entry>Not identical</entry>
<entry>
&true; if $a is not equal to $b, or they are not of the same
type. (PHP 4 only)
type. (introduced in PHP 4)
</entry>
</row>
<row>