cvs: phpdoc /en/language references.xml

From: Date: Fri, 06 Aug 2004 09:00:04 +0000
Subject: cvs: phpdoc /en/language references.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969362743@lists.php.net to get a copy of this message
vrana Fri Aug 6 05:00:04 2004 EDT Modified files: /phpdoc/en/language references.xml Log: WS http://cvs.php.net/diff.php/phpdoc/en/language/references.xml?r1=1.32&r2=1.33&ty=u Index: phpdoc/en/language/references.xml diff -u phpdoc/en/language/references.xml:1.32 phpdoc/en/language/references.xml:1.33 --- phpdoc/en/language/references.xml:1.32 Thu Aug 5 11:05:59 2004 +++ phpdoc/en/language/references.xml Fri Aug 6 05:00:04 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.32 $ --> +<!-- $Revision: 1.33 $ --> <chapter id="language.references"> <title>References Explained</title> @@ -26,7 +26,7 @@ <programlisting role="php"> <![CDATA[ <?php -$a =& $b +$a =& $b; ?> ]]> </programlisting> @@ -57,7 +57,7 @@ <![CDATA[ <?php $bar =& new fooclass(); -$foo =& find_var ($bar); +$foo =& find_var($bar); ?> ]]> </programlisting> @@ -151,13 +151,13 @@ <programlisting role="php"> <![CDATA[ <?php -function foo (&$var) +function foo(&$var) { $var++; } $a=5; -foo ($a); +foo($a); ?> ]]> </programlisting> @@ -183,7 +183,7 @@ <programlisting role="php"> <![CDATA[ <?php -function foo (&$var) +function foo(&$var) { $var =& $GLOBALS["baz"]; } @@ -216,13 +216,13 @@ <programlisting role="php"> <![CDATA[ <?php -function foo (&$var) +function foo(&$var) { $var++; } $a=5; -foo ($a); +foo($a); // $a is 6 here ?> ]]> @@ -303,13 +303,13 @@ <programlisting role="php"> <![CDATA[ <?php -function &find_var ($param) +function &find_var($param) { /* ...code... */ return $found_var; } -$foo =& find_var ($bar); +$foo =& find_var($bar); $foo->x = 2; ?> ]]> @@ -342,7 +342,7 @@ <?php $a = 1; $b =& $a; -unset ($a); +unset($a); ?> ]]> </programlisting>

« previous php.doc (#969362743) next »