SwishResults->nextResult

(no version information, might be only in CVS)

SwishResults->nextResult -- Get the next search result

Descrição

object SwishResults->nextResult ( void )

Atenção

Esta função é EXPERIMENTAL. Isso quer dizer que o comportamento desta função e seu nome, incluindo TUDO o que está documentado aqui pode mudar em futuras versões do PHP, SEM QUALQUER NOTIFICAÇÃO. Esteja avisado, e use esta função por sua própria conta e risco.

Valores de retornado

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

Exemplos

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

?>