add almost forgotten file: array_column.php
parent
803e2342f8
commit
e26877f2f9
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
function array_column(array $array, $column) {
|
||||||
|
$retval = array();
|
||||||
|
foreach ($array as $row) {
|
||||||
|
$retval[] = $row[$column];
|
||||||
|
}
|
||||||
|
return $retval;
|
||||||
|
}
|
Loading…
Reference in New Issue