开发者

How to get intellisense for PHP associative array index? [duplicate]

This question already has answers here: Closed 10 years ago.

Possible Duplicate:

PHPDoc for variable-length 开发者_开发问答arrays of arguments

Whenever I type $_SERVER[''] and hit Ctrl + Space it gives me the list of possible indexes. How can I make it possible to array's I've created?


The code completion for $_SERVER gives you hints on the typical values people get out of that associative array. It is hard-coded somewhere in the NetBeans source code. For an arbitrary array, NetBeans has no idea of the keys that are used in any array, and thus does not provide hints there. It is even possible to proof that it is impossible to reliably implement such a feature, so I think you are out of luck here.


You can't but the best you can do is to use phpDocumentor to document your code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜