~ubuntu-branches/ubuntu/saucy/php-net-nntp/saucy

« back to all changes in this revision

Viewing changes to Net_NNTP-1.5.0/docs/examples/phpdoc/selectNextArticle.php

  • Committer: Package Import Robot
  • Author(s): Jan-Pascal van Best
  • Date: 2013-05-31 23:38:17 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130531233817-4yi3exxgq17g6c4h
Tags: 1.5.0-1
New upstream release 1.5.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$article = $nntp->selectNextArticle();
 
2
if (PEAR::isError($article)) {
 
3
    // handle error
 
4
}
 
5
 
 
6
if ($article === false) {
 
7
    // article does not exist
 
8
} else {
 
9
    // success
 
10
}