Voting

: seven minus four?
(Example: nine)

The Note You're Voting On

alexander at gamerev dot org
10 years ago
Simply put, here's an example of what referencing IS:

<?php
$foo
= 5;
$bar = &$foo;
$bar++;

echo
$foo;
?>

The above example will output the value 6, because $bar references the value of $foo, therefore, when changing $bar's value, you also change $foo's value too.

<< Back to user notes page

To Top