|
Posted by Richard Levasseur on 06/18/06 18:22
Chung Leong wrote:
> Gary L. Burnore wrote:
> > >2. If you've defined a class and some methods, when you instantiate
> > >that class, it knows the type of the object, so when you do a
> > >
> > >MyClass $obj = new MyClass('arg');
> > >$obj->
> > >
> > >it shows the pop-up again with the members and the public interface of
> > >the class MyClass.
> >
> > Again yes, both do.
>
> Hmmm...how could that be done in PHP, where variables are typeless?
You couldn't do it with 100% accuracy, but if you're advanced enough to
do OOP, then chances are your methods are returning the same type. The
visual studio PHP plugin does this, and it is quite accurate.
If you like visual studio, i suggest getting the VS.php plugin, its
very nice. Provides the same features that are built in for c/c++ in
the msvs ide. It has a few idiosyncracies, but is otherwise very nice.
There is also Eclipse, which provides good PHP support (intellisense,
syntax as you type), too, also through a plugin.
[Back to original message]
|