epilogue, workaround the "buggy" behaviour

From: Date: Sat, 19 Aug 2000 17:16:29 +0000
Subject: epilogue, workaround the "buggy" behaviour
Groups: php.dev 
Request: Send a blank email to php-dev+get-29690@lists.php.net to get a copy of this message
hello heinz, perhaps you´re missed the latest discussions, thus here they currently possible way to do what you wanted to, it should have no performance impact cause if ref-counting... but you perhaps already know this regards function foo(&$boo) { $barfoo=3; //$boo=&$barfoo; // the way you expected and which is not working // if you´ve understood how references work in PHP $tmp=$boo; // the workaround-way $barfoo=&$boo; $boo=$tmp; return $boo; } $foo=5; echo foo($foo);

« previous php.dev (#29690) next »