code assist on foreach loop

General discussion on Zend Studio

Moderator: natalia_b_zend

code assist on foreach loop

Postby abcbien on Thu Jan 31, 2013 2:02 pm


is it possible to obtain code assistance on elements of a foreach loop?

Short example:
class MyClass {
* @return MyClass[]
static function getArrayOfMyClass() {

public function aFunctionOfMyClass() {

$arrayOfMyClass = MyClass::getArrayOfMyClass();

foreach ($arrayOfMyClass as $oneOfMyClass) {

I'd like ZendStudio to assist code typing by PROPOSING aFunctionOfMyClass()
The type should be found from the function comment (PHPStorm can do it).

How to do it with ZendStudio ?

Posts: 3
Joined: Fri Feb 17, 2012 8:47 am

Return to Zend Studio

Who is online

Users browsing this forum: No registered users and 4 guests