Net_NNTP_Client::count()

Net_NNTP_Client :: () – Get the number of articles in the current newsgroup

Synopsis

require_once 'Net/NNTP/Client.php';

public integer Net_NNTP_Client::count ( void )

Описание

Retrieves the number of articles in the current newsgroup.

Return value

integer - number of articles in newsgroup

Замечание

since 0.3

This function can not be called statically.

Пример

Using count()

<?php
...
$nntp->selectGroup("php.pear.dev");
echo 
"number of articles: ".$nntp->count();
?>
    Поддержать сайт на родительском проекте КГБ