PEAR Manual
Prev |  | Next

# Net_NNTP_Client::`count`()

Net_NNTP_Client::`count`() -- Get the number of articles in the current newsgroup

## Synopsis

require_once 'Net/NNTP/Client.php';

publicinteger`Net_NNTP_Client::count`

## Description

Retrieves the number of articles in the current newsgroup.

## Return value

`integer` - number of articles in newsgroup

## Note

since 0.3

This function can not be called statically.

## Example

Example 48-1. Using count()
    ...
    $nntp->selectGroup("php.pear.dev");
    echo "number of articles: ".$nntp->count();

Prev | Home | Next
Net_NNTP_Client::connectAuthenticated() | Up | Net_NNTP_Client::`getDescriptions`()