Last active
March 27, 2026 23:59
-
-
Save stemar/84a0925a4262fd17ba4465e07d1d0a7b to your computer and use it in GitHub Desktop.
Revisions
-
stemar revised this gist
Mar 27, 2026 . No changes.There are no files selected for viewing
-
stemar revised this gist
Jul 5, 2025 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,15 @@ <?php if (!function_exists('array_column')) { function array_column(array $array, $column_key, $index_key = NULL) { $output = array(); foreach ($array as $row) { if (is_null($index_key)) { $output []= is_null($column_key) ? $row : $row[$column_key]; } else { $output[$row[$index_key]] = is_null($column_key) ? $row : $row[$column_key]; } } return $output; } } -
stemar created this gist
Jun 29, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ <?php if (!function_exists('array_column')) { function array_column(array $rows, $column_key, $index_key = NULL) { $array = array(); foreach ($rows as $row) { if (is_null($index_key)) { $array []= is_null($column_key) ? $row : $row[$column_key]; } else { $array[$row[$index_key]] = is_null($column_key) ? $row : $row[$column_key]; } } return $array; } }