Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: min(eight, one)?
(Example: nine)

The Note You're Voting On

lazer_erazer
18 years ago
Your idea about unsetting all referenced variables at once is right,
just a tiny note that you changed NULL with unset()...
again, unset affects only one name and NULL affects the data,
which is kept by all the three names...

<?php
$a
= 1;
$b =& $a;
$b = NULL;
?>

This does also work!

<?php
$a
= 1;
$b =& $a;
$c =& $b;
$b = NULL;
?>

<< Back to user notes page

To Top