(PECL swish >= 0.1.0)

SwishResults::nextResultGet the next search result


object SwishResults::nextResult ( void )

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.

Значення, що повертаються

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


Приклад #1 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";


add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top