$oObjectB[$i] = &$oObjectA[$i];

The above statement does not matter, because in PHP5 "objects are
referenced by handle, and not by value".

Look at this example:
<?PHP
class foo {}

$a = new foo();
$b = $a;

unset($a);
var_dump($b);
>?

This will output:

object(foo)#1 (0) {
}

The object is not destroyed!? How do I destroy it without calling unset($b)?

I my application I am "sending" arrays, which are "holding objects", to objects. If I want to destroy an object inside that array, I want to destroy it for all objects.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to