©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PECL swish >= 0.1.0)
SwishResults::nextResult — Get the next search result
此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 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 ()) {
}
} catch ( SwishException $e ) {
echo $e -> getMessage (), "\n" ;
}
?>