note 26496 added to language.references.pass
| From: | php at fenux dot net | Date: | Fri, 01 Nov 2002 16:30:21 +0000 |
| Subject: | note 26496 added to language.references.pass | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38874@lists.php.net to get a copy of this message | ||
But what if I'm trying to pass a class to use as a parent variable. For example:
class parent
{
var $this;
var $that;
function parent()
{
}
}
class child
{
var $parent;
function child(&$parent)
{
$this->parent = $parent;
}
}
Changing it to "$this->parent = &$parent;" ought to work, but how can I make that
compatible with future versions?
--
http://www.php.net/manual/en/language.references.pass.php
http://master.php.net/manage/user-notes.php?action=edit+26496
http://master.php.net/manage/user-notes.php?action=delete+26496
http://master.php.net/manage/user-notes.php?action=reject+26496