CodeGen icon indicating copy to clipboard operation
CodeGen copied to clipboard

ArrayAccessExpr

Open c9s opened this issue 10 years ago • 0 comments

new ArrayAccessExpr('$var', [ 'foo', 'bar' ]);

generates:

$var['foo']['bar'];

The access keys can be Expression objects:

new ArrayAccessExpr('$var', [ 'foo', $someOtherExpr, $mathExpr ]);

c9s avatar Aug 02 '15 04:08 c9s