I bought http://www.amazon.com/Learning-MySQL-St ... se-Driven/ and http://www.amazon.com/Programming-PHP-R ... 596006810/ recently from Borders.
On page 105 of the first book, I see this code:
Code: Select all
$some_variable = "Hello world!";
$some_reference = &$some_variable;
$some_reference = "Guten Tag world!";
echo $some_variable;
echo $some_reference;Code: Select all
Guten Tag world!Guten Tag world!Coming from a Python/Perl/C++ perspective, I find it odd that there is no reference de-referencer, if I can call it that.
Please help me understand how to better look at this.
Thanks.