只是好奇这样做是否可行
$this->item['foo'] = $this->action(3);
$this->item['bar'] = $this->action(1);
$this->item['baz'] = $this->action(1);
与做
相同。$this->item = ($this->item +
[
'foo' => $this->action(3),
'bar' => $this->action(1),
'baz' => $this->action(1),
]);
如果您能解释原因/为什么不能,我会非常感激。