如何使这个数组赋值在 php5.6 中起作用?

How to make this array assignment work in php5.6?

我有一部分代码,写在php7:

[$columns, $values, $conditions] = $this->gatherConditions($identifier);

其中 $identifier 是一个数组。当我 运行 php5.6 服务器上的此代码显示错误 - unexpected "=" on line X。在 php 5.6 中应如何编写此行?

在 PHP 7.1 中允许短数组语法列表解构之前,PHP 中的等价物是

list($columns, $values, $conditions) = $this->gatherConditions($identifier);

查看 php.net/list 页面:https://www.php.net/manual/en/function.list.php