* Compatible with PHP 5.4 and below.
This commit is contained in:
@@ -424,7 +424,7 @@ class helper extends baseHelper
|
||||
public static function arrayColumn(array $input, int|string|null $columnKey, int|string|null $indexKey = null): array
|
||||
{
|
||||
/* If php version greater than 7, calling system functions returns. */
|
||||
if(PHP_VERSION_ID >= 70000) return \array_column($input, $columnKey, $indexKey);
|
||||
if(defined(PHP_VERSION_ID) && PHP_VERSION_ID >= 70000) return \array_column($input, $columnKey, $indexKey);
|
||||
|
||||
$output = array();
|
||||
foreach($input as $row)
|
||||
|
||||
Reference in New Issue
Block a user