Re: IDE for PHP
- From: Ryan Lange <cl1mh4224rd+newsgroups@xxxxxxxxx>
- Date: Sun, 18 Jun 2006 14:18:18 -0400
Gary L. Burnore wrote:
On 17 Jun 2006 17:58:20 -0700, "Chung Leong"
<chernyshevsky@xxxxxxxxxxx> wrote:
Gary L. Burnore wrote:Hmmm...how could that be done in PHP, where variables are typeless?2. If you've defined a class and some methods, when you instantiateAgain yes, both do.
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.
It can only know by the name of the class. It ain't perfect by any
means. It can be "fooled". You still have to know what you're doing.
I *think* he may have been referring to this line of yours:
MyClass $obj = new MyClass('arg');
Since PHP is loosely typed, the "MyClass" preceding $obj is bad syntax.
And, if that's not the case, then @Chung Leong: The IDE keeps track of which class you assign to the variable. Zend Studio is even capable of doing this for assignments from a function call:
.
- Follow-Ups:
- Re: IDE for PHP
- From: Ryan Lange
- Re: IDE for PHP
- References:
- IDE for PHP
- From: Water Cooler v2
- Re: IDE for PHP
- From: AlexVN
- Re: IDE for PHP
- From: Water Cooler v2
- Re: IDE for PHP
- From: Water Cooler v2
- Re: IDE for PHP
- From: Water Cooler v2
- Re: IDE for PHP
- From: Chung Leong
- IDE for PHP
- Prev by Date: Re: Recruiting a PHP Programmer
- Next by Date: Re: IDE for PHP
- Previous by thread: Re: IDE for PHP
- Next by thread: Re: IDE for PHP
- Index(es):
Relevant Pages
|