php-documentation-list | 2003031
Date: 03/07/03
- Next message: gk at gknw dot de: "[PHP-DOC] #21504 [Com]: W32api extension documentation is obsolete"
- Previous message: pmoulding at tedis dot com dot au: "[PHP-DOC] #22158 [Com]: "8M" isn't and integer is it ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 16738
Comment by: jharders at tricept dot de
Reported By: benh at uk2 dot net
Status: Closed
Bug Type: Documentation problem
Operating System: n/a
PHP Version: 4.2.0
Assigned To: alindeman
New Comment:
I've downloaded the latest PHP5-win-binary-package,
assuming that bug will would fixed, but it is'nt?
Previous Comments:
------------------------------------------------------------------------
[2002-04-22 18:47:43] bs <email protected>
This bug has been fixed in CVS.
------------------------------------------------------------------------
[2002-04-22 17:21:41] alindeman <email protected>
assigned to myself
------------------------------------------------------------------------
[2002-04-22 16:59:24] benh at uk2 dot net
<?php
$foo = 'Bob'; // Assign the value 'Bob' to $foo
$bar = &$foo; // Reference $foo via $bar.
$bar = "My name is $bar"; // Alter $bar...
echo $foo; // $foo is altered too.
echo $bar;
?>
Why do '$bar = "My name is $bar";'? And then do 'echo $foo' *before*
you 'echo $bar'? The point you're trying to make is surely expressed
better like this:
<?php
$foo = 'Bob'; // Assign the value 'Bob' to $foo
$bar = &$foo; // Reference $foo via $bar.
$bar = "Dave"; // Alter $bar...
echo $bar;
echo $foo; // $foo is altered too.
?>
Clearer for the newcomer to programming, ne?
------------------------------------------------------------------------
-- Edit this bug report at http://bugs.php.net/?id=16738&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: gk at gknw dot de: "[PHP-DOC] #21504 [Com]: W32api extension documentation is obsolete"
- Previous message: pmoulding at tedis dot com dot au: "[PHP-DOC] #22158 [Com]: "8M" isn't and integer is it ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

