SwishResults::nextResult

(PECL swish >= 0.1.0)

SwishResults::nextResultGet the next search result

Opis

SwishResults::nextResult ( void ) : object
Ostrzeżenie

Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko.

Zwracane wartości

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

Przykłady

Przykład #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