note 6210 deleted from Variables by ronabop

From: Date: Wed, 23 Aug 2000 09:54:14 +0000
Subject: note 6210 deleted from Variables by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2977@lists.php.net to get a copy of this message
Is it just me, or did nobody else noticed the inconsistency of PHP regarding references? Take the example $a="1";$b=$&a;$b="2"; Now $a equals "2", what is logically wrong. I did not use a dereferenciator. I should have changed just the reference, not the referenced data! So an additional Syntax like $*b = "2", to change the referenced data. Imagine the following problem: $a should first reference $b and 2 lines later reference $c. this is not possible without changing $b to reference $c, too.

« previous php.notes (#2977) next »