Re: [PHP] Object type determined at runtime

2009-07-06 Thread James Colannino
Ah, thanks very much. That was very helpful! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object type determined at runtime

2009-07-06 Thread David Otton
2009/7/6 James Colannino > Hey everyone.  I have a question.  Hopefully it's clear, because I'm not > sure quite how to ask it.  Basically, I have a variety of different > objects that a variable can be instantiated as in the same block of > code, its type being determined at runtime.  I want to

[PHP] Object type determined at runtime

2009-07-06 Thread James Colannino
Hey everyone. I have a question. Hopefully it's clear, because I'm not sure quite how to ask it. Basically, I have a variety of different objects that a variable can be instantiated as in the same block of code, its type being determined at runtime. I want to be able to do something like this: