Creating references to member variables - how?

From: Date: Fri, 19 Nov 1999 01:29:56 +0000
Subject: Creating references to member variables - how?
Groups: php.version4 
Request: Send a blank email to php-version4+get-6468@lists.php.net to get a copy of this message
Here's a scenario: class NodeList { var $nodes; // array of node references function item($idx) { // should return a node reference return &$this->nodes[$idx]; // <-- oops ... doesn't work... } } Is there a way of creating a reference in this situation? Leeloo

« previous php.version4 (#6468) next »