|
Posted by Csaba Gabor on 06/14/06 18:37
Wayne wrote:
> On 14 Jun 2006 06:20:47 -0700, "Csaba Gabor" <danswer@gmail.com>
> wrote:
>
> >Why is it that in the following code, the third line with ($ie1==$ie2)
> >prints "same" while the others all show "different"?
>
> Well == means do these objects have all the same properties where as
> === means are these the same object instances.
This is not true in the case of IE or objects on it. For example,
$ie1->hwnd!=$ie2->hwnd. Something else is at work here.
> You pretty much always want to use === with objects.
I don't have a problem working around it (and using === as
appropriate), but it would be nice to understand what's going on.
Navigation:
[Reply to this message]
|