SwishResults->nextResult

(no version information, might be only in CVS)

SwishResults->nextResult -- Get the next search result

Description

object SwishResults->nextResult ( void )

Waarschuwing

Deze functie is EXPERIMENTEEL. Dat betekent, dat het gedrag van deze functie, deze functienaam, in concreto ALLES dat hier gedocumenteerd is in een toekomstige uitgave van PHP ZONDER WAARSCHUWING kan veranderen. Wees gewaarschuwd, en gebruik deze functie op eigen risico.

Return Values

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

Voorbeelden

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

?>