PHP Velho Oeste 2024

SwishResults::nextResult

(PECL swish >= 0.1.0)

SwishResults::nextResultGet the next search result

Descrição

SwishResults::nextResult ( void ) : object
Aviso

Esta função é EXPERIMENTAL. O comportamento, seu nome e documentação podem mudar sem aviso em futuras versões do PHP. Utilize por sua própria conta e risco.

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

?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top