db_field_names
includes/database.inc, строка 531
- Версии
- 6
db_field_names($fields)
Return an array of field names from an array of key/index column specifiers.
This is usually an identity function but if a key/index uses a column prefix specification, this function extracts just the name.
Параметры
$fields
An array of key/index column specifiers.
Возвращаемое значение
An array of field names.
Связанные темы
Код
<?php
function db_field_names($fields) {
$ret = array();
foreach ($fields as $field) {
if (is_array($field)) {
$ret[] = $field[0];
}
else {
$ret[] = $field;
}
}
return $ret;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии