hits()

Description

int hits (void)

Returns the number of hits that the last search query returned, 0 if no search has been performed or there were no hits.

Examples

Example of checking using hits() before proceeding with processing.


... Initialize and perform ...

if($search->hits()) {
   ... process ...
}

... End ...