[PHP] re: Refering to an object from within an array variable in another class

2002-09-03 Thread Javier Montserat
Hi, Syntax B doesnt seem to work exactly because as you say it doesn't directly access the 'bars' variable...; here... $reference_to_bar = $this-GetBar($id) ; it seems that a copy of the bar object is being created, which is a new object. This new bar object is not related to the bar

[PHP] re: Refering to an object from within an array variable in another class

2002-09-03 Thread Javier Montserat
I believe the following discussion from Web Application Development with PHP 4.0 (available online at http://safari.oreilly.com) may shed some light on your question... Whenever PHP encounters a statement for which write access to a variable is needed, it evaluates and calculates the data