0

I have a part of code, that was written in php7:

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

where $identifier is an array. When I run this code on php5.6 server it shows error - unexpected "=" on line X. How this line should be written for working in php 5.6?

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61
Krechet USA
  • 15
  • 1
  • 3

1 Answers1

0

The equivalent in PHP before the short-array syntax list-destructuring was allowed in PHP 7.1, is

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

See the php.net/list page: https://www.php.net/manual/en/function.list.php

Alister Bulman
  • 34,482
  • 9
  • 71
  • 110