JavaScript Editor Javascript debugger     Website design 


Get the next search result ()
object SwishResults->nextResult ( )


This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

Return Values

Returns the next SwishResult object in the result set or FALSE if there are no more results available.


Example 2514. Basic SwishResults->nextResult() example


try {

$swish = new Swish("index.swish-e");
$search = $swish->prepare();

$results = $search->execute("lost");
$result = $results->nextResult()) {
/* do something with the result object */

} catch (
SwishException $e) {
$e->getMessage(), "\n";