PEAR Manual
Prev |  | Next

# Net_NNTP::getOverviewFmt()

Net_NNTP::getOverviewFmt() -- fetch the name of message headers

## Synopsis

    require_once 'Net/NNTP.php';

``array Net_NNTP::getOverviewFmt` ()`

## Description

Returns the name of message headers, which is provided by every message

## Return value

`array` - list of header names

## Note

This function can not be called statically.

## See

Net_NNTP::getOverview()

## Example

Example 48-1. Using getOverviewFmt()
    ...
    $tblheaders = $nntp->getOverviewFmt();
    // create a table headline
    echo '<table>';
    echo '<tr>';
    foreach($tblheaders as $th) {
       // print headernames
       echo '<th>'.$th.'</th>';
    }
    echo '</tr>';
    ... // draw the header data of messages
    echo '</table>';

Prev | Home | Next
Net_NNTP::getOverview() | Up | Net_NNTP::getOverviewFormat()