Re: [PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Mark Baldwin
other objects. So, instead of passing them around or instantiating instances whenever I need to call a method, I would just declare those methods as static. Hope this helps. On 4/20/06, Mark Baldwin <[EMAIL PROTECTED]> wrote: Well, that's part of the reason I'm asking. I

Re: [PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Mark Baldwin
sed for someone who might know the internals of PHP5 a lot better than myself, so sorry if this is the wrong list to ask, but Zend Internals didn't seem right either as it's not quite a development question. On Apr 20, 2006, at 4:11 PM, Richard Lynch wrote: On Thu, April 20, 2006

[PHP] Static vs. Instantiated Objects in PHP

2006-04-20 Thread Mark Baldwin
Greetings all, Does anyone know how static objects work behind the scenes in PHP5? More specifically, is there a benefit to declaring an object and its methods as static vs the more traditional OO way of instantiating an object and then calling methods through the -> operator? For example