Re: [PHP] object references lose local variables

2001-10-03 Thread Steve Strassmann
Hi, I'm the original author. I put my address in the body of the message to avoid spammers. To answer your question, nobody answered my question. However, after messing around, I found a change that did the trick. Coming from an OOP background (lisp, smalltalk, etc.) it sure seems to me that PHP h

[PHP] object references lose local variables

2001-09-26 Thread a
I'd like to ask your help to figure out why PHP objects are stripped of their local variables when you add the objects to an array. Shouldn't these be references, not shallow copies? The code below is a simple org chart. I create three instances, each is added to a global array called orgs[]. Ea