PHP Velho Oeste 2024

SwishResults::nextResult

(PECL swish >= 0.1.0)

SwishResults::nextResultGet the next search result

Açıklama

SwishResults::nextResult ( void ) : object
Uyarı

Bu işlev DENEYSELDİR. Bu işlevin davranışı, ismi ve belgeleri PHP'nin sonraki sürümlerinde hiçbir duyuru yapılmaksızın değiştirilebilir. Bu riski göze alamayacaksanız bu işlevi kullanmayın.

Dönen Değerler

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

Örnekler

Örnek 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