fieldgenerator()

MYSQL show columns shorthand.


fieldgenerator( string $db ) : array

Parameters

$db (string) (Required) Table name.

Return Values

(array)

Examples

$fields = fieldgenerator(DB_NEWS_CATS);
/*
Array
(
    [0] => news_cat_id
    [1] => news_cat_parent
    [2] => news_cat_name
    [3] => news_cat_image
    [4] => news_cat_visibility
    [5] => news_cat_draft
    [6] => news_cat_sticky
    [7] => news_cat_language
)
*/