src/Util/PDOX.php
function describeColumn($fieldname, $source) {
        if ( ! is_array($source) ) {
            if ( ! is_string($source) ) {
                throw new \Exception('Source must be an array of metadata or a table name');
            }
            $source = self::describe($source);
            if ( ! is_array($source) ) return null;
        }
        foreach( $source as $column ) {
            $name = U::get($column, "Field");
            if ( $fieldname == $name ) return $column;
        }
        return null;
    }
function describeColumn($fieldname, $source) {
        if ( ! is_array($source) ) {
            if ( ! is_string($source) ) {
                throw new \Exception('Source must be an array of metadata or a table name');
            }
            $source = self::describe($source);
            if ( ! is_array($source) ) return null;
        }
        foreach( $source as $column ) {
            $name = U::get($column, "Field");
            if ( $fieldname == $name ) return $column;
        }
        return null;
    }
function describeColumn ( $ fieldname , $ source ) { if ( ! is_array ( $ source ) ) { if ( ! is_string ( $ source ) ) { throw new \ Exception ( 'Source must be an array of metadata or a table name' ) ; } $ source = self :: describe ( $ source ) ; if ( ! is_array ( $ source ) ) return null ; } foreach ( $ source as $ column ) { $ name = U :: get ( $ column , "Field" ) ; if ( $ fieldname == $ name ) return $ column ; } return null ; }
Retrieve the metadata for a column in a table.

For the output format for MySQL, see:
https://dev.mysql.com/doc/refman/5.7/en/explain.html

@param $fieldname The name of the column
@param $source Either an array of the column metadata or the name of the table

@return mixed An array of the column metadata or null
Retrieve the metadata for a column in a table .