|
|
> I'm not sure PHP lets you have a pointer to another object visible at
> the user layer. If you do
> $x['hello'] = $y
> as far as the user is concerned, $x['hello'] and $y are two different
> values. So $y['hello'] = $y doesn't form a circular reference, as far as
> I can remember. I'll try it out as soon as I boot over to Linux.
PHP has "references":
$a =& $b;
This behaves like Unix hardlinks. "$a and $b are completely equal here,
that's not $a pointing to $b or vice versa, that's $a and $b pointing to
the same place"
Post a reply to this message
|
|