Forum und email

SwishResults->nextResult

(PECL swish:0.1-0.3.0)

SwishResults->nextResult — Get the next search result

Descripción

object SwishResults->nextResult ( void )
Warning

Esta función es EXPERIMENTAL. Esto significa que el comportamiento de esta función, el nombre de esta función y en definitiva TODO lo documentado sobre esta función, puede cambiar en una futura version de PHP SIN AVISO. La advertencia queda hecha, y utilizar esta extensión queda bajo su propia responsabilidad.

Valores retornados

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

Ejemplos

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

?>