public function describe($table = '')
    {
        $this->sql = $sql = "DESC $table;";
        $this->STH = $this->prepare($sql);
        $this->STH->execute();
        $colList = $this->STH->fetchAll();

        $field = [];
        $type = [];
        foreach ($colList as $key) {
            $field[] = $key['Field'];
            $type[] = $key['Type'];
        }

        return array_combine($field, $type);
    }
public function describe($table = '')
    {
        $this->sql = $sql = "DESC $table;";
        $this->STH = $this->prepare($sql);
        $this->STH->execute();
        $colList = $this->STH->fetchAll();

        $field = [];
        $type = [];
        foreach ($colList as $key) {
            $field[] = $key['Field'];
            $type[] = $key['Type'];
        }

        return array_combine($field, $type);
    }
public function describe ( $ table = '' ) { $ this -> sql = $ sql = "DESC $table;" ; $ this -> STH = $ this -> prepare ( $ sql ) ; $ this -> STH -> execute ( ) ; $ colList = $ this -> STH -> fetchAll ( ) ; $ field = [ ] ; $ type = [ ] ; foreach ( $ colList as $ key ) { $ field [ ] = $ key [ 'Field' ] ; $ type [ ] = $ key [ 'Type' ] ; } return array_combine ( $ field , $ type ) ; }
Return Table Fields of Requested Table.

@param string $table

@return array Field Type and Field Name
Return Table Fields of Requested Table .