no need for an array_column fallback, because our extensive yield <expr> usage alread...
authorMichael Wallner <mike@php.net>
Thu, 3 Sep 2015 10:49:32 +0000 (12:49 +0200)
committerMichael Wallner <mike@php.net>
Thu, 3 Sep 2015 10:49:32 +0000 (12:49 +0200)
src/pharext/Cli/Command.php

index bc0afbbf374ac4bfca064ff1215f5fd8ffcdcbab..e8d0ee02608f15710a213e9176fed58a0748a81f 100644 (file)
@@ -7,20 +7,6 @@ use pharext\Cli\Args as CliArgs;
 
 use Phar;
 
-if (!function_exists("array_column")) {
-       function array_column(array $array, $col, $idx = null) {
-               $result = [];
-               foreach ($array as $el) {
-                       if (isset($idx)) {
-                               $result[$el[$idx]] = $el[$col];
-                       } else {
-                               $result[] = $el[$col];
-                       }
-               }
-               return $result;
-       }
-}
-
 trait Command
 {
        /**