src/TerminalObject/Basic/Table.php
protected function getHeaderRow()
    {
        $first_item = reset($this->data);

        $keys       = array_keys($first_item);
        $first_key  = reset($keys);

        // We have an associative array (probably), let's have a header row
        if (!is_int($first_key)) {
            return array_combine($keys, $keys);
        }

        return false;
    }
protected function getHeaderRow()
    {
        $first_item = reset($this->data);

        $keys       = array_keys($first_item);
        $first_key  = reset($keys);

        // We have an associative array (probably), let's have a header row
        if (!is_int($first_key)) {
            return array_combine($keys, $keys);
        }

        return false;
    }
protected function getHeaderRow ( ) { $ first_item = reset ( $ this -> data ) ; $ keys = array_keys ( $ first_item ) ; $ first_key = reset ( $ keys ) ; // We have an associative array (probably), let's have a header row if ( ! is_int ( $ first_key ) ) { return array_combine ( $ keys , $ keys ) ; } return false ; }
Get the header row for the table if it's an associative array or object

@return mixed
Get the header row for the table if it s an associative array or object