<?php class Foo { public function data() { return ['foo' => 'bar']; } } $a = (new Foo())->data()['foo']; var_dump($a);
You have javascript disabled. You will not be able to edit any code.