Swish Funciones
PHP Manual

SwishResults->nextResult

(PECL swish >= 0.1.0)

SwishResults->nextResultGet the next search result

Descripción

object SwishResults->nextResult ( void )
Warning

Esta función ha sido declarada EXPERIMENTAL. Su comportamiento, su nombre y la documentación que le acompaña puede cambiar sin previo aviso en futuras versiones de PHP. Use esta función bajo su propio riesgo.

Valores devueltos

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

?>


Swish Funciones
PHP Manual