SwishResults->nextResult
(PECL swish:0.1-0.3.0)
SwishResults->nextResult — Get the next search result
설명
object SwishResults->nextResult
( void
)
Warning
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.
반환값
Returns the next SwishResult object in the result set or FALSE if there are no more results available.
ì˜ˆì œ
Example#1 Basic SwishResults->nextResult() example
<?php
try {
$swish = new Swish("index.swish-e");
$search = $swish->prepare();
$results = $search->execute("lost");
while($result = $results->nextResult()) {
/* do something with the result object */
}
} catch (SwishException $e) {
echo $e->getMessage(), "\n";
}
?>