PHP 7.2.0 Release Candidate 2 Released

Voting

Please answer this simple SPAM challenge: zero minus zero?
(Example: nine)

The Note You're Voting On

alexander at gamerev dot org
3 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