public static function arrayColumn(array $array, $column_key, $index_key = null)
    {
        $aReturn = array();
        if ($column_key === null) {
            // No column key? Grab the whole row...
            if ($index_key === null) {
                return $array;
            }
            foreach ($array as $sub) {
                $aReturn[$sub[$index_key]] = $sub;
            }
        } elseif (empty($index_key)) {
            foreach ($array as $sub) {
                $aReturn[] = $sub[$column_key];
            }
        } else {
            foreach ($array as $sub) {
                $aReturn[$sub[$index_key]] = $sub[$column_key];
            }
        }
        return $aReturn;
    }