Documentation is available at selectNextArticle.php
$article = $nntp->selectNextArticle(); if (PEAR::isError($article)) { // handle error } if ($article === false) { // article does not exist } else { // success }