Home > PHP > Function > YAZ > yaz_hits()

yaz_hits()

yaz_hits - Returns number of hits for last search

Syntax

int yaz_hits (resource $id, array &$searchresult)

Arguments

  • id - The connection resource returned by yaz_connect().
  • searchresult - Result array for detailed search result information.

Description

yaz_hits() returns the number of hits for the last search.

Version

PHP 4.0.1, PECL yaz >= 0.9.0

Return value

Returns the number of hits for the last search or 0 if no search was performed.