PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SwishResults->seekResult> <SwishResults->getRemovedStopwords
Last updated: Fri, 22 Aug 2008

view this page in

SwishResults->nextResult

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

SwishResults->nextResultGet the next search result

Description

object SwishResults->nextResult ( void )
Warning

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.

Return Values

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

Examples

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

?>



add a note add a note User Contributed Notes
SwishResults->nextResult
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites