SwishResults->nextResult

(no version information, might be only in CVS)

SwishResults->nextResult -- Get the next search result

说明

object SwishResults->nextResult ( void )

警告

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。

返回值

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

范例

例 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";
}

?>