Swish 函数
PHP 手册

SwishResults->nextResult

(No version information available, might be only in CVS)

SwishResults->nextResultGet the next search result

说明

object SwishResults->nextResult ( void )
Warning

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

返回值

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

?>


Swish 函数
PHP 手册